jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/395702 )
Change subject: [IMPR] A more preceese exception for patrol.py ......................................................................
[IMPR] A more preceese exception for patrol.py
Change-Id: I56c0a598c3431f166e81fb077b1cee50ac771b14 --- M scripts/patrol.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/patrol.py b/scripts/patrol.py index a20484e..f21be42 100755 --- a/scripts/patrol.py +++ b/scripts/patrol.py @@ -279,7 +279,7 @@ author_ns = 0 try: author_ns = self.site.family.authornamespaces[self.site.lang][0] - except Exception: + except (AttributeError, KeyError): pass if author_ns: author_ns_prefix = self.site.namespace(author_ns)
pywikibot-commits@lists.wikimedia.org