jenkins-bot merged this change.
[bugfix] Terminate script if mandatory options aren't given
Bug: T220261
Change-Id: I84c5c0966177a7430359b102cdb333a865bbb6f7
---
M scripts/create_categories.py
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/create_categories.py b/scripts/create_categories.py
index 3111b86..af13e2b 100755
--- a/scripts/create_categories.py
+++ b/scripts/create_categories.py
@@ -32,8 +32,8 @@
"""
#
# (C) Multichill, 2011
-# (C) xqt, 2011-2018
-# (c) Pywikibot team, 2013-2018
+# (C) xqt, 2011-2019
+# (c) Pywikibot team, 2013-2019
#
# Distributed under the terms of the MIT license.
#
@@ -110,7 +110,7 @@
missing.add('-basename')
generator = gen_factory.getCombinedGenerator()
- if generator and missing:
+ if generator and not missing:
bot = CreateCategoriesBot(generator, parent, basename, **options)
bot.run()
pywikibot.output('All done')
To view, visit change 501892. To unsubscribe, or for help writing mail filters, visit settings.