mirror of
https://github.com/Syncplay/syncplay
synced 2025-03-11 06:07:53 +00:00
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:
|
||||
if room in self._rooms:
|
||||
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
|
||||
|
||||
def isRoomPaused(self, room):
|
||||
|
Loading…
Reference in New Issue
Block a user