From ae61b9f4d31337e0de980d48a6ba71e97b84bcdf Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Mon, 4 Mar 2013 16:08:40 -0500 Subject: [PATCH] do not break if a file fails to be silan-analyzed --- utils/airtime-silan.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/airtime-silan.py b/utils/airtime-silan.py index 08bc04b55..fcaa6e88e 100644 --- a/utils/airtime-silan.py +++ b/utils/airtime-silan.py @@ -50,7 +50,7 @@ try: full_path = f['fp'] # silence detect(set default queue in and out) try: - command = ['silan', '-f', 'JSON', full_path] + command = ['silan', '-b' '-f', 'JSON', full_path] proc = subprocess.Popen(command, stdout=subprocess.PIPE) out = proc.communicate()[0].strip('\r\n') info = json.loads(out) @@ -64,7 +64,6 @@ try: except Exception, e: print e print traceback.format_exc() - break print "Processed: %d songs" % total subtotal += total