# HG changeset patch # User Amine Sehili # Date 1571946973 -3600 # Node ID 445d8bf27cf2fad0a688d2ecf268a3f0f3daa098 # Parent 9741b52f194ae05c46ca0408f5cb157ebe24bf58 Add Exception to except block in _run_subprocess diff -r 9741b52f194a -r 445d8bf27cf2 auditok/workers.py --- a/auditok/workers.py Thu Oct 24 20:49:51 2019 +0200 +++ b/auditok/workers.py Thu Oct 24 20:56:13 2019 +0100 @@ -33,7 +33,7 @@ ) as proc: stdout, stderr = proc.communicate() return proc.returncode, stdout, stderr - except: + except Exception: err_msg = "Couldn't export audio using command: '{}'".format(command) raise AudioEncodingError(err_msg)