show reason for audiogen failure

This commit is contained in:
boyska 2018-02-04 23:57:35 +01:00
parent 55b03841b0
commit 2cce020fab
2 changed files with 3 additions and 5 deletions

View file

@ -1,5 +1,3 @@
from __future__ import print_function
from flask_wtf import Form
from wtforms import StringField, validators, SubmitField

View file

@ -184,9 +184,9 @@ class Monitor(ParentedLet):
for audiospec in audiospecs:
try:
uris.extend(audiogenerate(audiospec))
except:
self.log.error('audiogenerate for %s failed',
str(audiospec))
except Exception as exc:
self.log.error('audiogenerate for <%s> failed; reason: %s',
str(audiospec), str(exc))
self.send_to_parent('uris_enqueue',
dict(uris=uris,
timespec=timespec,