[Pywikipedia-l] [ pywikipediabot-Bugs-1865598 ] Unable to use framework when IP is blocked

SourceForge.net noreply at sourceforge.net
Mon Jan 7 06:36:43 UTC 2008


Bugs item #1865598, was opened at 2008-01-07 04:34
Message generated for change (Comment added) made by rotemliss
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1865598&group_id=93107

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Unable to use framework when IP is blocked

Initial Comment:
I am unable to log myself or my bot in when my IP is blocked. See traceback:

matt at oak:~/pywiki$ python login.py
Checked for running processes. 1 processes currently running, including the current process.
Password for user MonoBot on wikipedia:en:
Logging in to wikipedia:en as MonoBot
Traceback (most recent call last):
  File "login.py", line 277, in ?
    main()
  File "login.py", line 273, in main
    loginMan.login()
  File "login.py", line 220, in login
    if not self.botAllowed():
  File "login.py", line 91, in botAllowed
    for linkedPage in botListPage.linkedPages():
  File "/home/matt/pywiki/wikipedia.py", line 1473, in linkedPages
    thistxt = removeLanguageLinks(self.get(get_redirect=True),
  File "/home/matt/pywiki/wikipedia.py", line 600, in get
    self._contents = self._getEditPage(get_redirect = get_redirect, throttle = throttle, sysop = sysop, nofollow_redirects=nofollow_redirects)
  File "/home/matt/pywiki/wikipedia.py", line 707, in _getEditPage
    raise UserBlocked(self.site(), self.aslink(forceInterwiki = True))
wikipedia.UserBlocked: (wikipedia:en, u'[[en:Wikipedia:Registered bots]]')
matt at oak:~/pywiki$ python login.py
Checked for running processes. 1 processes currently running, including the current process.
Password for user Monobi on wikipedia:en:
Logging in to wikipedia:en as Monobi
Traceback (most recent call last):
  File "login.py", line 277, in ?
    main()
  File "login.py", line 273, in main
    loginMan.login()
  File "login.py", line 220, in login
    if not self.botAllowed():
  File "login.py", line 91, in botAllowed
    for linkedPage in botListPage.linkedPages():
  File "/home/matt/pywiki/wikipedia.py", line 1473, in linkedPages
    thistxt = removeLanguageLinks(self.get(get_redirect=True),
  File "/home/matt/pywiki/wikipedia.py", line 600, in get
    self._contents = self._getEditPage(get_redirect = get_redirect, throttle = throttle, sysop = sysop, nofollow_redirects=nofollow_redirects)
  File "/home/matt/pywiki/wikipedia.py", line 707, in _getEditPage
    raise UserBlocked(self.site(), self.aslink(forceInterwiki = True))
wikipedia.UserBlocked: (wikipedia:en, u'[[en:Wikipedia:Registered bots]]')

----------------------------------------------------------------------

Comment By: Rotem Liss (rotemliss)
Date: 2008-01-07 08:36

Message:
Logged In: YES 
user_id=1327030
Originator: NO

You shouldn't be able to use the bot at all while blocked - please ask a
sysop why are you blocked and ask for unblocking. It may, however, be
possible to enforce that only for actual edits, and only show a warning
when getting pages. (Note that some older MediaWiki versions don't allow
you to get the edit page while blocked, but this doesn't apply to Wikimedia
sites.)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1865598&group_id=93107



More information about the Pywikipedia-l mailing list