Fixed irc bot list append with no file opened
This commit is contained in:
parent
e9427bff50
commit
248caf84c0
@ -328,7 +328,10 @@ class SyncFactory(Factory):
|
|||||||
with self._roomUpdate:
|
with self._roomUpdate:
|
||||||
if room in self._rooms:
|
if room in self._rooms:
|
||||||
for user in self._rooms[room].itervalues():
|
for user in self._rooms[room].itervalues():
|
||||||
l.append({'nick': user.name, 'file': user.file['name'], "length": user.file['duration']})
|
if(user.file):
|
||||||
|
l.append({'nick': user.name, 'file': user.file['name'], "length": user.file['duration']})
|
||||||
|
else:
|
||||||
|
l.append({'nick': user.name, 'file': None, "length": None})
|
||||||
return l
|
return l
|
||||||
|
|
||||||
def isRoomPaused(self, room):
|
def isRoomPaused(self, room):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user