Skip to content

Commit 77f496f

Browse files
committed
xpcall external functions
1 parent 463da2f commit 77f496f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

WagoUI_Libraries/LibAddonProfiles/modules/HidingBar.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ local m = {
5858
setProfile = function(self, profileKey)
5959
if not profileKey then return end
6060
if not self:getProfileKeys()[profileKey] then return end
61-
HidingBarAddon:setProfile(profileKey)
62-
HidingBarConfigAddon:hidingBarUpdate()
61+
xpcall(function()
62+
HidingBarAddon:setProfile(profileKey)
63+
HidingBarConfigAddon:hidingBarUpdate()
64+
end, geterrorhandler())
6365
end,
6466
testImport = function(self, profileString, profileKey, profileData, rawData, moduleName)
6567
if not profileString then return end

0 commit comments

Comments
 (0)