[MediaWiki-commits] [Gerrit] pywikibot/core[master]: [IMPR] A more preceese exception for patrol.py

2017-12-06 Thread jenkins-bot (Code Review)
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)

-- 
To view, visit https://gerrit.wikimedia.org/r/395702
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I56c0a598c3431f166e81fb077b1cee50ac771b14
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt 
Gerrit-Reviewer: Dalba 
Gerrit-Reviewer: John Vandenberg 
Gerrit-Reviewer: Zoranzoki21 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] pywikibot/core[master]: [IMPR] A more preceese exception for patrol.py

2017-12-06 Thread Xqt (Code Review)
Xqt has uploaded a new change for review. ( 
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(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/02/395702/1

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)

-- 
To view, visit https://gerrit.wikimedia.org/r/395702
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I56c0a598c3431f166e81fb077b1cee50ac771b14
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits