trimmed python handler error verbosity

This commit is contained in:
Jean-Francois Dockes
2019-02-18 10:32:54 +01:00
parent 8f10f48555
commit 1f8afa4e2d
2 changed files with 11 additions and 6 deletions
+8 -3
View File
@@ -238,10 +238,15 @@ class AudioTagExtractor(RclBaseHandler):
# We actually output text/plain
self.outputmimetype = 'text/plain'
mutf = File(filename)
mutf = None
msg = ''
try:
mutf = File(filename)
except Exception as ex:
msg = "Open failed: %s" % ex
if not mutf:
raise Exception("mutagen failed opening %s" % filename)
raise Exception(msg)
#self._showMutaInfo(mutf)