WolfgangFahl / py-3rdparty-mediawiki

Wrapper for pywikibot and mwclient MediaWiki API librarties with improvements for 3rd party wikis
Apache License 2.0
4 stars 5 forks source link

TypeError: startswith first arg must be bytes or a tuple of bytes, not str #3

Closed WolfgangFahl closed 4 years ago

WolfgangFahl commented 4 years ago

see https://stackoverflow.com/questions/19827615/startswith-typeerror-in-function/19827633 happens when the value of a link is empty and urlparse returns an empty byte typed string.

WolfgangFahl commented 4 years ago

see https://www.semantic-mediawiki.org/wiki/User:WolfgangFahl/Workdocumentation_2020-06-01