Skip to content

Commit 5669696

Browse files
committed
fix parser error handling
1 parent 5fb9fa4 commit 5669696

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

resources/lib/twitch/parser.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ def _find_frame_rate(group_id, group_name):
4848
def m3u8(f):
4949
def m3u8_wrapper(*args, **kwargs):
5050
results = f(*args, **kwargs)
51-
results = results.decode('utf-8')
51+
try:
52+
results = results.decode('utf-8')
53+
except AttributeError:
54+
pass
5255
if keys.ERROR in results:
5356
if isinstance(results, dict):
5457
return results

0 commit comments

Comments
 (0)