From 0ecc621f21569653255121237bc1674fadc5c8d7 Mon Sep 17 00:00:00 2001 From: "Daniel R. Slater" Date: Tue, 12 May 2020 12:32:35 -0400 Subject: [PATCH] Catch and handle error thrown from IsAzeriteEmpoweredItem() on 8.3.0 C_AzeriteEmpoweredItem.IsAzeriteEmpoweredItem() is throwing an error. Wrapped the call to C_AzeriteEmpoweredItem.IsAzeriteEmpoweredItem() with pcall to catch and handle the error. --- OutfitterInventory.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OutfitterInventory.lua b/OutfitterInventory.lua index c4813a1..7d85b95 100755 --- a/OutfitterInventory.lua +++ b/OutfitterInventory.lua @@ -501,7 +501,8 @@ function Outfitter:GetSlotIDItemInfo(slotID) end function Outfitter:GetAzeriteCodesForLocation(location) - if not C_AzeriteEmpoweredItem.IsAzeriteEmpoweredItem(location) then + local success,isAzeriteItem = pcall( function() return C_AzeriteEmpoweredItem.IsAzeriteEmpoweredItem(location) end ); + if not (success and isAzeriteItem) then return end