changeset 332:445d8bf27cf2

Add Exception to except block in _run_subprocess
author Amine Sehili <amine.sehili@gmail.com>
date Thu, 24 Oct 2019 20:56:13 +0100
parents 9741b52f194a
children 6fc2d27bd2ef
files auditok/workers.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)