Menu

#653 welcome.py does not display "blocked" message correctly.

closed-fixed
Filnik
None
5
2008-03-08
2008-03-08
No

welcome.py does not display "blocked" message correctly.

コーキシュクセイ has enough edits to be welcomed
%E3%82%B3%E3%83%BC%E3%82%AD%E3%82%B7%E3%83%A5%E3%82%AF%E3%82%BB%E3%82%A4 has been blocked! Skipping... <-- !

Discussion

  • Filnik

    Filnik - 2008-03-08
    • assigned_to: nobody --> filnik
    • status: open --> closed
     
  • Filnik

    Filnik - 2008-03-08

    Logged In: YES
    user_id=1834469
    Originator: NO

    should be fixed in rev 5109. Bug closed. Filnik

     
  • Nightshadow28

    Nightshadow28 - 2008-03-08
     
  • Nightshadow28

    Nightshadow28 - 2008-03-08

    Logged In: YES
    user_id=1971526
    Originator: YES

    Thanks filnik, I tried it in r5111. But it aborts.

    ディアマンテ has no contributions.
    おとり has no contributions.
    海獺 = ベルクリ = ちゃたま (権限乱用) has enough edits to be welcomed
    Traceback (most recent call last):
    File "welcome.py", line 919, in ?
    for x in main(settingsBot):
    File "welcome.py", line 795, in main
    wikipedia.output(u'%s has been blocked! Skipping...' % username.titleWithoutNamespace())
    AttributeError: 'str' object has no attribute 'titleWithoutNamespace'

    ----
    # Check if the user has been already blocked.
    ki = blocked(wsite,username)
    username = str(username).encode(config.console_encoding)
    if ki == True:
    wikipedia.output(u'%s has been blocked! Skipping...' % username.titleWithoutNamespace()) <--!
    continue

    If the line is as below, it runs:
    wikipedia.output(u'%s has been blocked! Skipping...' % usertalkpage.titleWithoutNamespace())

    I attached the code.
    File Added: welcome.py.r5111_fixed

     
  • Rotem Liss

    Rotem Liss - 2008-03-08

    Logged In: YES
    user_id=1327030
    Originator: NO

    Fixed again in r5114.

     
  • Rotem Liss

    Rotem Liss - 2008-03-08
    • status: closed --> closed-fixed
     

Log in to post a comment.