Last modified: 2014-10-22 22:32:02 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 T60574, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58574 - unicodeDecodeError in url2unicode()
unicodeDecodeError in url2unicode()
Status: NEW
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Normal normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks: pwb20
  Show dependency treegraph
 
Reported: 2013-12-17 12:00 UTC by xqt
Modified: 2014-10-22 22:32 UTC (History)
2 users (show)

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


Attachments

Description xqt 2013-12-17 12:00:36 UTC
Historia de Cerdeña -> corresponding page is Història de Sardenya
Traceback (most recent call last):
  File "C:\pwb\core\pwb.py", line 135, in <module>
    run_python_file(fn, argv, argvu)
  File "C:\pwb\core\pwb.py", line 67, in run_python_file
    exec(compile(source, filename, "exec"), main_mod.__dict__)
  File "C:\pwb\core\scripts\featured.py", line 683, in <module>
    main()
  File "C:\pwb\core\scripts\featured.py", line 676, in main
    bot.run()
  File "C:\pwb\core\scripts\featured.py", line 285, in run
    self.run_good()
  File "C:\pwb\core\scripts\featured.py", line 320, in run_good
    self.treat(code, task)
  File "C:\pwb\core\scripts\featured.py", line 372, in treat
    self.featuredWithInterwiki(fromsite, process)
  File "C:\pwb\core\scripts\featured.py", line 612, in featuredWithInterwiki
    atrans.put(text, comment)
  File "C:\pwb\core\pywikibot\page.py", line 906, in put
    async=async, callback=callback, **kwargs)
  File "C:\pwb\core\pywikibot\page.py", line 827, in save
    **kwargs)
  File "C:\pwb\core\pywikibot\page.py", line 834, in _save
    comment = self._cosmetic_changes_hook(comment) or comment
  File "C:\pwb\core\pywikibot\page.py", line 884, in _cosmetic_changes_hook
    self.text = ccToolkit.change(old)
  File "C:\pwb\core\scripts\cosmetic_changes.py", line 174, in change
    text = self.cleanUpLinks(text)
  File "C:\pwb\core\scripts\cosmetic_changes.py", line 510, in cleanUpLinks
    'startspace'])
  File "C:\pwb\core\pywikibot\textlib.py", line 208, in replaceExcept
    replacement = new(match)
  File "C:\pwb\core\scripts\cosmetic_changes.py", line 396, in handleOneLink
    if not self.site.isInterwikiLink(titleWithSection):
  File "C:\pwb\core\pywikibot\site.py", line 381, in isInterwikiLink
    linkfam, linkcode = pywikibot.Link(text, self).parse_site()
  File "C:\pwb\core\pywikibot\page.py", line 3102, in __init__
    t = url2unicode(t, site=self._source)
  File "C:\pwb\core\pywikibot\page.py", line 3546, in url2unicode
    raise firstException
UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 12: invalid
start byte

Unfortunately the title is not printed to specify that bug

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


Navigation
Links