jenkins-bot has submitted this change and it was merged.

Change subject: [bugfix] fix verbose output
......................................................................


[bugfix] fix verbose output

Change-Id: I36d41071c0dd6eef00191264c4cb2ae9b92034cc
---
M checkvotes.py
1 file changed, 4 insertions(+), 2 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/checkvotes.py b/checkvotes.py
index bfb1a9b..ac24702 100644
--- a/checkvotes.py
+++ b/checkvotes.py
@@ -427,7 +427,8 @@
                 raise Exception
             result = rights['Schiedsgericht'] if sg else rights['Allgemeine']
             if result is False or config.verbose_output:
-                pywikibot.output('\nBenutzer:%s ist nicht stimmberechtigt' % 
username)
+                pywikibot.output('\nBenutzer:%s ist%s stimmberechtigt'
+                                 % (username, '' if result else ' nicht'))
 
             if self.blockinfo:  # write blocking info
                 try:
@@ -530,7 +531,8 @@
 
         # page.getRestrictions() may delete the content
         # if revision ID has been changed (bug: T93364)
-        restrictions = page.getRestrictions()  # TODO: für Prüfung hier 
ausschließen
+        # TODO: für Prüfung hier ausschließen
+        restrictions = page.getRestrictions()
         if restrictions:
             if 'edit' in restrictions and restrictions['edit']:
                 if 'sysop' in restrictions['edit']:

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I36d41071c0dd6eef00191264c4cb2ae9b92034cc
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/bots/xqbot
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to