Xqt created this task.
Xqt added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  **Steps to replicate the issue**:
  
    >>> import pywikibot
    >>> site = pywikibot(Site)
    >>> site.interwiki_prefix(site)
    KeyError: "There is no interwiki prefix to 'wikipedia:de'"
    >>> wh = s.interwiki('wikihow')
    >>> site.interwiki_prefix(wh)
    KeyError: "There is no interwiki prefix to 'wikihow:en'"
  
  **What happens?**:
  I've checked several sites and always got that KeyError
  
  **What should have happened instead?**:
  An interwiki prefix should be returned from a given url. Refer 
siteinfo['interwikimap']:
  
https://de.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=interwikimap
  
  **Software version** (skip for WMF-hosted wikis like Wikipedia):
  
  **Other information** (browser name/version, screenshots, etc.):

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

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

To: Xqt
Cc: Aklapper, pywikibot-bugs-list, Xqt, Jyoo1011, JohnsonLee01, SHEKH, 
Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, 
Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to