Python bot not connecting

hi there my bot is not connecting everytime i start the bot it says this

Logged In

Handlers Registered

Traceback (most recent call last):

File “./lucy.py”, line 1218, in

start()

File “./lucy.py”, line 1177, in start

JCON.getRoster()

File “core.zip/xmpp/client.py”, line 239, in getRoster

return self.Roster.getRoster()

File “core.zip/xmpp/roster.py”, line 61, in getRoster

while not self.set: self._owner.Process(10)

File “core.zip/xmpp/dispatcher.py”, line 326, in dispatch

handler’func’

File “./lucy.py”, line 999, in iqHnd

if user_level(fromjid,fromjid.getStripped())==-100:

AttributeError: ‘NoneType’ object has no attribute ‘getStripped’

DISCONNECTED

WAITING FOR RESTART…