summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShyam Sunder <sgsunder1@gmail.com>2018-09-27 11:28:24 -0400
committerrr- <rr-@sakuya.pl>2018-12-22 12:31:25 +0100
commite80c4828916ab7e4be59614c7aec8e94b60388b4 (patch)
treedb63a1f2e86e09e3ef94ddf4e8380c65b2a977b4
parent987a3aa8f2a7b5f286e6e7cbda4c8894eb3a35ed (diff)
server/func/images: Fix Unicode Error
-rw-r--r--server/requirements.txt2
-rw-r--r--server/szurubooru/func/images.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/requirements.txt b/server/requirements.txt
index a1ef52e..b228e7b 100644
--- a/server/requirements.txt
+++ b/server/requirements.txt
@@ -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
diff --git a/server/szurubooru/func/images.py b/server/szurubooru/func/images.py
index 4dce5d8..19cd8a4 100644
--- a/server/szurubooru/func/images.py
+++ b/server/szurubooru/func/images.py
@@ -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()