do not break if a file fails to be silan-analyzed
This commit is contained in:
parent
c747b6ad47
commit
ae61b9f4d3
|
@ -50,7 +50,7 @@ try:
|
||||||
full_path = f['fp']
|
full_path = f['fp']
|
||||||
# silence detect(set default queue in and out)
|
# silence detect(set default queue in and out)
|
||||||
try:
|
try:
|
||||||
command = ['silan', '-f', 'JSON', full_path]
|
command = ['silan', '-b' '-f', 'JSON', full_path]
|
||||||
proc = subprocess.Popen(command, stdout=subprocess.PIPE)
|
proc = subprocess.Popen(command, stdout=subprocess.PIPE)
|
||||||
out = proc.communicate()[0].strip('\r\n')
|
out = proc.communicate()[0].strip('\r\n')
|
||||||
info = json.loads(out)
|
info = json.loads(out)
|
||||||
|
@ -64,7 +64,6 @@ try:
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
print e
|
print e
|
||||||
print traceback.format_exc()
|
print traceback.format_exc()
|
||||||
break
|
|
||||||
print "Processed: %d songs" % total
|
print "Processed: %d songs" % total
|
||||||
subtotal += total
|
subtotal += total
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue