jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/688393 )
Change subject: [bugfix] Fix unsupported object unary operand ......................................................................
[bugfix] Fix unsupported object unary operand
Bug was introduced with fd605f0
Change-Id: Ie3ec6ffe7852af71bc0591c22d73bcae1ace0902 --- M scripts/category_redirect.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/category_redirect.py b/scripts/category_redirect.py index 983692a..69f1bc0 100755 --- a/scripts/category_redirect.py +++ b/scripts/category_redirect.py @@ -475,7 +475,7 @@ message = i18n.twtranslate(self.site, 'category_redirect-log-new') date_line = '\n== {}-{:02d}-{:02d}T{:02d}:{:02d}:{:02d}Z ==\n' \ .format(*time.gmtime()[:6]) - self.log_page.text = (date_line, + self.log_page.text = (date_line + '\n'.join(self.log_text) + '\n* ' + message + '\n' + '\n'.join(self.newredirs)
pywikibot-commits@lists.wikimedia.org