Last modified: 2014-09-02 01:36:30 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 T71062, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69062 - makecat exception when nothing is entered into first prompt
makecat exception when nothing is entered into first prompt
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
Other scripts (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks: pwb_script_tests
  Show dependency treegraph
 
Reported: 2014-08-03 04:20 UTC by John Mark Vandenberg
Modified: 2014-09-02 01:36 UTC (History)
2 users (show)

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


Attachments

Description John Mark Vandenberg 2014-08-03 04:20:13 UTC
If makecat is run without an argument to specify a page name, it will prompt the user for a page name.  If the user presses <enter> without entering a value, an exception is raised.

$ python pwb.py scripts/makecat.py -family:wikipedia -lang:en
Which page to start with? 
WARNING: unicode.setAction is DEPRECATED, use comment parameter for page saving method instead.
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/makecat.py", line 228, in <module>
    workingcatname))
  File ".../pywikibot/__init__.py", line 432, in wrapper
    return method(*__args, **__kw)
  File ".../pywikibot/page.py", line 1903, in __init__
    if self.namespace() != 14:
  File ".../pywikibot/page.py", line 138, in namespace
    return self._link.namespace
  File ".../pywikibot/page.py", line 3760, in namespace
    self.parse()
  File ".../pywikibot/page.py", line 3737, in parse
    % self._text)
pywikibot.exceptions.Error: Invalid link (no page title): 'Category:'
<class 'pywikibot.exceptions.Error'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
Comment 1 John Mark Vandenberg 2014-08-03 11:18:10 UTC
https://gerrit.wikimedia.org/r/#/c/151396/
Comment 2 Mpaa 2014-08-16 20:13:12 UTC
Patch is merged.

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


Navigation
Links