From 2cce020fab5e94322660fb876b812cf8c4cb8c37 Mon Sep 17 00:00:00 2001 From: boyska Date: Sun, 4 Feb 2018 23:57:35 +0100 Subject: [PATCH] show reason for audiogen failure --- larigira/audioform_static.py | 2 -- larigira/event.py | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/larigira/audioform_static.py b/larigira/audioform_static.py index 21c9449..e0b98a0 100644 --- a/larigira/audioform_static.py +++ b/larigira/audioform_static.py @@ -1,5 +1,3 @@ -from __future__ import print_function - from flask_wtf import Form from wtforms import StringField, validators, SubmitField diff --git a/larigira/event.py b/larigira/event.py index 36bb1ca..d354050 100644 --- a/larigira/event.py +++ b/larigira/event.py @@ -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,