Xqt has submitted this change and it was merged.
Change subject: bugfix #87639: catch AttributeError ......................................................................
bugfix #87639: catch AttributeError
Change-Id: I4f52b6f1d567079ee10188e5d21f460b6090c430 Fixes-Change-Id: Ic45856cc7ec894da67d97f75a38638b0806e5db4 --- M pywikibot/bot.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Verified; Looks good to me, approved
diff --git a/pywikibot/bot.py b/pywikibot/bot.py index ba93c5b..45c1098 100644 --- a/pywikibot/bot.py +++ b/pywikibot/bot.py @@ -629,7 +629,7 @@ if type(getattr(config, _arg)) is not int: raise TypeError setattr(config, _arg, int(_val)) - except (ValueError, TypeError) as exc: + except (ValueError, TypeError, AttributeError) as exc: # argument not global -> specific bot script will take care nonGlobalArgs.append(arg)
pywikibot-commits@lists.wikimedia.org