jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: pywikibot-core.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  I have https://en.wikipedia.org/wiki/Talk:WP:AJ/Transcription on my 
watchlist, and appears to now be a  Bad title, but I doubt it was when it was 
put on my watchlist.
  
  While testing https://gerrit.wikimedia.org/r/#/c/215902/ for T59995 , I 
encountered
  
  ```
  $ python pwb.py watchlist -user:John_Vandenberg
  ...
  Traceback (most recent call last):
    File "pwb.py", line 226, in <module>
      if not main():
    File "pwb.py", line 220, in main
      run_python_file(filename, [filename] + args, argvu, file_package)
    File "pwb.py", line 87, in run_python_file
      main_mod.__dict__)
    File "./scripts/watchlist.py", line 115, in <module>
      main()
    File "./scripts/watchlist.py", line 112, in main
      pywikibot.output(page.title(), toStdout=True)
    File "../pywikibot/tools/__init__.py", line 1227, in wrapper
      return obj(*__args, **__kw)
    File "../pywikibot/page.py", line 211, in title
      title = self._link.canonical_title()
    File "../pywikibot/page.py", line 4868, in canonical_title
      if self.namespace:
    File "../pywikibot/page.py", line 4833, in namespace
      self.parse()
    File "../pywikibot/page.py", line 4771, in parse
      "in another namespace.".format(self._text))
  pywikibot.exceptions.InvalidTitle: The (non-)talk page of 
'Talk:WP:AJ/Transcription' is a valid title in another namespace.
  <class 'pywikibot.exceptions.InvalidTitle'>
  ```
  Note that I do not see that problem on `master` so this is probably a follow 
up patch for T59995 .
  
  watchlist.py should list it, with an invalid title warning.
  
  This may also mean that the exception InvalidTitle here is not valid on older 
versions of MW. :/

TASK DETAIL
  https://phabricator.wikimedia.org/T106954

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: jayvdb
Cc: Aklapper, jayvdb, pywikibot-bugs-list, Malyacko, P.Copp



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to