jenkins-bot has submitted this change and it was merged. Change subject: Show the file which raised the pywikibot.Error ......................................................................
Show the file which raised the pywikibot.Error - For investigating the error, it helps to know the affected file page. - New error message. The error occurs when an invalid or broken template was fetched. Change-Id: I0b03a76d233fe664d067e668df781f1998f472ce --- M scripts/checkimages.py 1 file changed, 2 insertions(+), 3 deletions(-) Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified diff --git a/scripts/checkimages.py b/scripts/checkimages.py index 267eb23..1b50c33 100755 --- a/scripts/checkimages.py +++ b/scripts/checkimages.py @@ -1325,9 +1325,8 @@ licenses_TEST = regex_are_licenses.findall(self.imageCheckText) if not self.licenses_found and licenses_TEST: raise pywikibot.Error( - "APIs seems down. No templates found with them but " - "actually there are templates used in the image's " - "page!") + "Invalid or broken templates found in the image's " + "page %s!" % self.image) self.allLicenses = [] if not self.list_licenses: -- To view, visit https://gerrit.wikimedia.org/r/218598 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I0b03a76d233fe664d067e668df781f1998f472ce Gerrit-PatchSet: 5 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Xqt <i...@gno.de> Gerrit-Reviewer: John Vandenberg <jay...@gmail.com> Gerrit-Reviewer: Ladsgroup <ladsgr...@gmail.com> Gerrit-Reviewer: Merlijn van Deen <valhall...@arctus.nl> Gerrit-Reviewer: Mpaa <mpaa.w...@gmail.com> Gerrit-Reviewer: Ricordisamoa <ricordisa...@openmailbox.org> Gerrit-Reviewer: XZise <commodorefabia...@gmx.de> Gerrit-Reviewer: Xqt <i...@gno.de> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits