From 43b5f05a4cdec2b48324b38709d3c062fc7fe768 Mon Sep 17 00:00:00 2001 From: Florian Berthold Date: Sat, 23 May 2026 00:14:38 +0200 Subject: [PATCH] fix: pcall-guard C_ClassInfo.GetSpecInfo in Types.lua spec iteration Same CoA client issue as coa-details: GetAllSpecs(class) returns items that GetSpecInfo rejects with 'Expected string' at arg #2. Wrap the addSpec(class, GetSpecInfo(class, spec)) call in pcall so bad iterations skip silently rather than spamming Error.txt. --- WeakAuras/Types.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/WeakAuras/Types.lua b/WeakAuras/Types.lua index 68573c7..428e594 100644 --- a/WeakAuras/Types.lua +++ b/WeakAuras/Types.lua @@ -3839,7 +3839,10 @@ do local specs = C_ClassInfo.GetAllSpecs(class) if specs then for _, spec in ipairs(specs) do - addSpec(class, C_ClassInfo.GetSpecInfo(class, spec)) + local ok, info = pcall(C_ClassInfo.GetSpecInfo, class, spec) + if ok and info then + addSpec(class, info) + end end end end