valhallasw / plagiabot

MIT License
13 stars 6 forks source link

Add backup nickname #10

Closed Niharika29 closed 8 years ago

Niharika29 commented 8 years ago

I recently tried to run the script for activating Eranbot for French wikipedia. Here's the error trace I got:

tools.eranbot@tools-bastion-03:~$ python /data/project/eranbot/gitPlagiabot/plagiabot/plagiabot.py -lang:fr -blacklist:Utilisateur:EranBot/Copyright/Blacklist -live:on -reportlogger
using report logger
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/data/project/eranbot/gitPlagiabot/plagiabot/IRCRCListener.py", line 81, in run
    self.irc_bot.start()
  File "/usr/lib/python2.7/dist-packages/ircbot.py", line 246, in start
    self._connect()
  File "/usr/lib/python2.7/dist-packages/ircbot.py", line 96, in _connect
    ircname=self._realname)
  File "/usr/lib/python2.7/dist-packages/irclib.py", line 1084, in connect
    localaddress, localport, ssl, ipv6)
  File "/usr/lib/python2.7/dist-packages/irclib.py", line 447, in connect
    self.nick(self.nickname)
  File "/usr/lib/python2.7/dist-packages/irclib.py", line 733, in nick
    self.send_raw("NICK " + newnick)
TypeError: cannot concatenate 'str' and 'NoneType' objects

I changed the nickname below to be 'Eranbot' (since that is the username on English and French wikis) and it started working fine:

tools.eranbot@tools-bastion-03:~$ python /data/project/eranbot/gitPlagiabot/plagiabot/plagiabot.py -lang:fr -blacklist:Utilisateur:EranBot/Copyright/Blacklist -live:on -reportlogger
using report logger
yield element
Page in buffer: 0
yield element
Page in buffer: 1
yield element
Page in buffer: 2
yield element
Page in buffer: 3
yield element
Page in buffer: 4
yield element
Page in buffer: 5
yield element
Page in buffer: 6
yield element
Page in buffer: 7
yield element
Page in buffer: 8
yield element
Page in buffer: 9
Checking uploads (0). ready
checking pending
Title: Cours Lafayette
    Prev: 129873921 New:129980914
    Delta too small - skipping
Title: Liste de chansons sur Paris par titre
    Prev: 129926855 New:129980916
Logging in to ithenticate...

I will remove the change from prod once the test job finishes.

Thanks.

Niharika29 commented 8 years ago

Hi, the test job finished and worked fine. I've removed the change I made on prod.