jenkins-bot has submitted this change and it was merged.
Change subject: Remove print statement
......................................................................
Remove print statement
Change-Id: Ib9b14364539e320adc2cff37081952954ea8f03e
---
M pywikibot/pagegenerators.py
1 file changed, 2 insertions(+), 3 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/pagegenerators.py b/pywikibot/pagegenerators.py
index baccca5..6e831e2 100644
--- a/pywikibot/pagegenerators.py
+++ b/pywikibot/pagegenerators.py
@@ -1053,10 +1053,9 @@
link = '%s&%s&max=%d&order=img_timestamp' % (URL, wiki, limit)
results = re.findall(REGEXP, http.request(site=None, uri=link))
if not results:
- print link
raise pywikibot.Error(
- 'Nothing found! Try to use the tool by yourself to be sure that it '
- 'works!')
+ 'Nothing found at %s! Try to use the tool by yourself to be sure that it
'
+ 'works!' % link)
else:
for result in results:
yield pywikibot.Page(pywikibot.getSite(), result)
--
To view, visit
https://gerrit.wikimedia.org/r/98287
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib9b14364539e320adc2cff37081952954ea8f03e
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot