CC-5038:
Silan error: list index out of range cosmetic bug fix to prevent so much logging
This commit is contained in:
parent
cdb53048c7
commit
afb55c7b51
|
@ -47,8 +47,9 @@ class SilanAnalyzer(Thread):
|
||||||
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)
|
||||||
data['cuein'] = str('{0:f}'.format(info['sound'][0][0]))
|
if len(info['sound']) >= 2:
|
||||||
data['cueout'] = str('{0:f}'.format(info['sound'][-1][1]))
|
data['cuein'] = str('{0:f}'.format(info['sound'][0][0]))
|
||||||
|
data['cueout'] = str('{0:f}'.format(info['sound'][-1][1]))
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
self.logger.error(str(command))
|
self.logger.error(str(command))
|
||||||
self.logger.error(e)
|
self.logger.error(e)
|
||||||
|
|
Loading…
Reference in New Issue