Framawiki has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/406065 )

Change subject: [bugfix] pwb.py: bad 'user-config.py' was not found
......................................................................

[bugfix] pwb.py: bad 'user-config.py' was not found

Bug: T185647
Change-Id: I6a749d822f9f3b96398ffc8f268434854510646d
---
M pwb.py
1 file changed, 3 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/65/406065/1

diff --git a/pwb.py b/pwb.py
index f4ff16d..6d16eb7 100755
--- a/pwb.py
+++ b/pwb.py
@@ -185,8 +185,9 @@
     pwb = pywikibot
 except RuntimeError as err:
     # user-config.py to be created
-    print("NOTE: 'user-config.py' was not found!")
-    if filename is not None and not filename.startswith('generate_'):
+    if filename is not None and not (filename.startswith('generate_')
+                or filename == 'version'):
+        print("NOTE: 'user-config.py' was not found!")
         print("Please follow the prompts to create it:")
         run_python_file('generate_user_files.py',
                         ['generate_user_files.py'],

-- 
To view, visit https://gerrit.wikimedia.org/r/406065
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6a749d822f9f3b96398ffc8f268434854510646d
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Framawiki <framaw...@tools.wmflabs.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to