Xqt merged this change.
Revert "[IMMPR] Do not raise a RuntimeError if user-config.py is missing"
Makes generate_family_file.py return exit code 1 even when successfull
This reverts commit 8fb998ba7dd43b6a66eae3b66f39f04ca2b150de.
Change-Id: Ia439bee46b4eaf911c68ce838f8f5d0289f9f5ce
---
M pywikibot/config2.py
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/pywikibot/config2.py b/pywikibot/config2.py
index b32710a..d57ed60 100644
--- a/pywikibot/config2.py
+++ b/pywikibot/config2.py
@@ -368,8 +368,7 @@
'location.\n'
' Directory where user-config.py is searched is determined '
'as follows:\n\n ') + get_base_dir.__doc__
- output(exc_text)
- sys.exit(1)
+ raise RuntimeError(exc_text)
return base_dir
To view, visit change 604926. To unsubscribe, or for help writing mail filters, visit settings.