jenkins-bot merged this change.
Added more useful output on overwrite fail
ListifyRobot fails on non-empty page for output, adding a more
helpful error message.
Bug: T198780
Change-Id: I430b2e6983028cbd76a7fb742e65a4a170fecb20
---
M scripts/category.py
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/scripts/category.py b/scripts/category.py
index 6b90d37..b6de801 100755
--- a/scripts/category.py
+++ b/scripts/category.py
@@ -944,8 +944,10 @@
else:
listString += "*[[:%s]]\n" % article.title()
if self.list.exists() and not self.overwrite:
- pywikibot.output(u'Page %s already exists, aborting.'
- % self.list.title())
+ pywikibot.output(
+ 'Page {} already exists, aborting.\n'
+ 'Use -overwrite option to overwrite the output page.'
+ .format(self.list.title()))
else:
self.list.put(listString, summary=self.editSummary)
To view, visit change 443812. To unsubscribe, or for help writing mail filters, visit settings.