https://bugzilla.wikimedia.org/show_bug.cgi?id=69062
Bug ID: 69062
Summary: makecat exception when nothing is entered into first
prompt
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
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
--
You are receiving this mail because:
You are the assignee for the bug.