Last modified: 2014-08-06 06:28:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T70662, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68662 - transferbot raises ugly exception if zero cmd line arguments are given
transferbot raises ugly exception if zero cmd line arguments are given
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Unprioritized minor
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks: pwb_script_tests
  Show dependency treegraph
 
Reported: 2014-07-27 03:10 UTC by John Mark Vandenberg
Modified: 2014-08-06 06:28 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description John Mark Vandenberg 2014-07-27 03:10:21 UTC
$ 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.
Comment 1 Travis Briggs 2014-08-05 01:08:43 UTC
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....
Comment 2 Andre Klapper 2014-08-05 10:58:02 UTC
(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. :)
Comment 3 Gerrit Notification Bot 2014-08-05 18:06:43 UTC
Change 151808 had a related patch set uploaded by Audiodude:
Make transferbot exit cleanly when no arguments given.

https://gerrit.wikimedia.org/r/151808
Comment 4 Gerrit Notification Bot 2014-08-06 04:49:52 UTC
Change 151808 merged by jenkins-bot:
Make transferbot exit cleanly when no arguments given.

https://gerrit.wikimedia.org/r/151808

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links