make exceptions while enqueuing not blocking

This commit is contained in:
boyska 2016-08-29 18:37:57 +02:00
parent ff48437a15
commit 3edd08e8b3

View file

@ -110,6 +110,11 @@ class Player(gevent.Greenlet):
elif kind == 'mpc':
pass
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:
self.log.warning("Unknown message: %s" % str(value))