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@lists.wikimedia.org Reporter: jayvdb@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
https://bugzilla.wikimedia.org/show_bug.cgi?id=69062
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
--- Comment #1 from John Mark Vandenberg jayvdb@gmail.com --- https://gerrit.wikimedia.org/r/#/c/151396/
https://bugzilla.wikimedia.org/show_bug.cgi?id=69062
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |69069
https://bugzilla.wikimedia.org/show_bug.cgi?id=69062
Mpaa mpaa.wiki@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED CC| |mpaa.wiki@gmail.com Resolution|--- |FIXED
--- Comment #2 from Mpaa mpaa.wiki@gmail.com --- Patch is merged.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69062
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|General |Other scripts
pywikipedia-bugs@lists.wikimedia.org