jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/437059 )
Change subject: [bugfix] Fix category tidy error when not using custom summary ......................................................................
[bugfix] Fix category tidy error when not using custom summary
edit_summary has to be instantiated before we call if edit_summary later in the script as it throws an error otherwise.
Change-Id: Ib3f8acb6915c5ea1069836ccd740e97425ad7a57 --- M scripts/category.py 1 file changed, 2 insertions(+), 3 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/category.py b/scripts/category.py index 0111d11..efaeee6 100755 --- a/scripts/category.py +++ b/scripts/category.py @@ -987,9 +987,8 @@ """Initializer.""" self.cat_title = cat_title self.cat_db = cat_db - if comment: - self.edit_summary = comment - else: + self.edit_summary = comment + if not comment: self.template_vars = {'oldcat': cat_title}
site = pywikibot.Site()
pywikibot-commits@lists.wikimedia.org