Page MenuHomePhabricator

makecat exception when nothing is entered into first prompt
Closed, ResolvedPublic


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 scripts/ -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 "", line 157, in <module> run_python_file(fn, argv, argvu) File "", line 67, in run_python_file exec(compile(source, filename, "exec"), main_mod.dict) File "scripts/", line 228, in <module> workingcatname)) File ".../pywikibot/", line 432, in wrapper return method(*args, **kw) File ".../pywikibot/", line 1903, in init__ if self.namespace() != 14: File ".../pywikibot/", line 138, in namespace return self._link.namespace File ".../pywikibot/", line 3760, in namespace self.parse() File ".../pywikibot/", 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

Version: core-(2.0)
Severity: normal