make exceptions while enqueuing not blocking
This commit is contained in:
parent
ff48437a15
commit
3edd08e8b3
1 changed files with 6 additions and 1 deletions
|
@ -110,6 +110,11 @@ class Player(gevent.Greenlet):
|
||||||
elif kind == 'mpc':
|
elif kind == 'mpc':
|
||||||
pass
|
pass
|
||||||
elif kind == 'add':
|
elif kind == 'add':
|
||||||
self.enqueue(args[0])
|
try:
|
||||||
|
self.enqueue(args[0])
|
||||||
|
except AssertionError:
|
||||||
|
raise
|
||||||
|
except Exception as exc:
|
||||||
|
self.log.exception("Error while adding to queue; bad audiogen output?")
|
||||||
else:
|
else:
|
||||||
self.log.warning("Unknown message: %s" % str(value))
|
self.log.warning("Unknown message: %s" % str(value))
|
||||||
|
|
Loading…
Reference in a new issue