do not break if a file fails to be silan-analyzed

This commit is contained in:
Martin Konecny 2013-03-04 16:08:40 -05:00
parent c747b6ad47
commit ae61b9f4d3
1 changed files with 1 additions and 2 deletions

View File

@ -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