jenkins-bot has submitted this change and it was merged. Change subject: flake8 ......................................................................
flake8 Change-Id: I2744a761a5764e95cfc1954d24a54f42c1fcd9a8 --- M scripts/harvest_template.py M scripts/welcome.py 2 files changed, 2 insertions(+), 3 deletions(-) Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified diff --git a/scripts/harvest_template.py b/scripts/harvest_template.py index a8ba023..ac9bc01 100755 --- a/scripts/harvest_template.py +++ b/scripts/harvest_template.py @@ -65,7 +65,7 @@ try: self.processPage(page) except Exception as e: - pywikibot.exception(tb=True) + pywikibot.exception(msg=e, tb=True) def getTemplateSynonyms(self, title): """ @@ -131,7 +131,7 @@ try: template = pywikibot.Page(page.site, template, ns=10).title(withNamespace=False) - except pywikibot.exceptions.InvalidTitle as e: + except pywikibot.exceptions.InvalidTitle: pywikibot.error(u"Failed parsing template; '%s' should be the template name." % template) continue # We found the template we were looking for diff --git a/scripts/welcome.py b/scripts/welcome.py index ef037c0..4b9ead3 100644 --- a/scripts/welcome.py +++ b/scripts/welcome.py @@ -867,7 +867,6 @@ def main(): - number_user = 0 for arg in pywikibot.handleArgs(): if arg.startswith('-edit'): if len(arg) == 5: -- To view, visit https://gerrit.wikimedia.org/r/141381 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I2744a761a5764e95cfc1954d24a54f42c1fcd9a8 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Ladsgroup <ladsgr...@gmail.com> Gerrit-Reviewer: John Vandenberg <jay...@gmail.com> Gerrit-Reviewer: Merlijn van Deen <valhall...@arctus.nl> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits