https://bugzilla.wikimedia.org/show_bug.cgi?id=68662
Bug ID: 68662 Summary: transferbot raises ugly exception if zero cmd line arguments are given Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: minor Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
$ python pwb.py transferbot Traceback (most recent call last): File "pwb.py", line 157, in <module> run_python_file(fn, argv, argvu) File "pwb.py", line 67, in run_python_file exec(compile(source, filename, "exec"), main_mod.__dict__) File "scripts/transferbot.py", line 132, in <module> main() File "scripts/transferbot.py", line 78, in main raise Exception('Target site not different from source site') Exception: Target site not different from source site <type 'exceptions.Exception'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
It should give a pretty message, and/or show help, but at least it is informative.
https://bugzilla.wikimedia.org/show_bug.cgi?id=68662
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |69069
https://bugzilla.wikimedia.org/show_bug.cgi?id=68662
Travis Briggs audiodude@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |audiodude@gmail.com
--- Comment #1 from Travis Briggs audiodude@gmail.com --- I have https://gerrit.wikimedia.org/r/#/c/151808/ for fixing this, but I couldn't figure out how to use this bugzilla interface to mark that....
https://bugzilla.wikimedia.org/show_bug.cgi?id=68662
Andre Klapper aklapper@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
--- Comment #2 from Andre Klapper aklapper@wikimedia.org --- (In reply to Travis Briggs from comment #1)
but I couldn't figure out how to use this bugzilla interface to mark that
If you follow http://www.mediawiki.org/wiki/Gerrit/Commit_message_guidelines (see Auto-linking and cross-referencing) you don't need to do anything. :)
https://bugzilla.wikimedia.org/show_bug.cgi?id=68662
--- Comment #3 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 151808 had a related patch set uploaded by Audiodude: Make transferbot exit cleanly when no arguments given.
https://gerrit.wikimedia.org/r/151808
https://bugzilla.wikimedia.org/show_bug.cgi?id=68662
--- Comment #4 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 151808 merged by jenkins-bot: Make transferbot exit cleanly when no arguments given.
https://gerrit.wikimedia.org/r/151808
https://bugzilla.wikimedia.org/show_bug.cgi?id=68662
Mpaa mpaa.wiki@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED CC| |mpaa.wiki@gmail.com Resolution|--- |FIXED
pywikipedia-bugs@lists.wikimedia.org