jenkins-bot has submitted this change and it was merged.
Change subject: (bugfix) catDB is undefined invoking "category.py -help" ......................................................................
(bugfix) catDB is undefined invoking "category.py -help"
This patch solves this point.
Change-Id: I9892c0486a7ebda8ff7793530923d261abb45865 --- M category.py 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: Ladsgroup: Looks good to me, approved jenkins-bot: Verified
diff --git a/category.py b/category.py index e2bf0c1..59ffddc 100644 --- a/category.py +++ b/category.py @@ -1072,5 +1072,6 @@ try: main() finally: - catDB.dump() + if 'catDB' in globals(): + catDB.dump() pywikibot.stopme()