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

Change subject: Print additional information when the script terminates
......................................................................


Print additional information when the script terminates

Bug: T132294
Change-Id: Ic3d65d07edb3cd58b73a16b355b2483227355fba
---
M scripts/nowcommons.py
1 file changed, 8 insertions(+), 2 deletions(-)

Approvals:
  MarcoAurelio: Looks good to me, but someone else must approve
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/scripts/nowcommons.py b/scripts/nowcommons.py
index 166b776..62bcd07 100755
--- a/scripts/nowcommons.py
+++ b/scripts/nowcommons.py
@@ -51,8 +51,8 @@
 #
 # (C) Wikipedian, 2006-2007
 # (C) Siebrand Mazeland, 2007-2008
-# (C) xqt, 2010-2014
-# (C) Pywikibot team, 2006-2015
+# (C) xqt, 2010-2016
+# (C) Pywikibot team, 2006-2016
 #
 # Distributed under the terms of the MIT license.
 #
@@ -451,6 +451,12 @@
             except (pywikibot.NoPage, pywikibot.IsRedirectPage) as e:
                 pywikibot.output(u'%s' % e[0])
                 continue
+            else:
+                self._treat_counter += 1
+        if not self._treat_counter:
+            pywikibot.output(
+                'No transcluded files found for %s.' % self.ncTemplates[0])
+        self.exit()
 
 
 def main(*args):

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic3d65d07edb3cd58b73a16b355b2483227355fba
Gerrit-PatchSet: 3
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: MarcoAurelio <[email protected]>
Gerrit-Reviewer: Mpaa <[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