server/func/images: Fix Unicode Error

This commit is contained in:
Shyam Sunder 2018-09-27 11:28:24 -04:00 committed by rr-
parent 987a3aa8f2
commit e80c482891
2 changed files with 2 additions and 2 deletions

View file

@ -7,6 +7,6 @@ elasticsearch>=5.0.0
elasticsearch-dsl>=5.0.0
numpy>=1.8.2
pillow>=4.3.0
pynacl>=1.2.1
pynacl==1.2.1
pytz>=2018.3
pyRFC3339>=1.0

View file

@ -158,7 +158,7 @@ class Image:
'-af', 'volumedetect',
'-f', 'null',
'-y', '/dev/null',
], get_logs=True).decode('utf-8')
], get_logs=True).decode('utf-8', errors='replace')
log_match = re.search(r'.*volumedetect.*mean_volume: (.*) dB', log)
assert log_match
assert log_match.groups()