Skip to content

Commit

Permalink
Merge pull request #98 from johan44co/patch-1
Browse files Browse the repository at this point in the history
Change decode default 'ascii' codec to 'utf-8'
  • Loading branch information
agermanidis authored Sep 7, 2018
2 parents 408b6db + 2bb919b commit 249a96d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autosub/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def __call__(self, data):
except requests.exceptions.ConnectionError:
continue

for line in resp.content.decode().split("\n"):
for line in resp.content.decode('utf-8').split("\n"):
try:
line = json.loads(line)
line = line['result'][0]['alternative'][0]['transcript']
Expand Down

0 comments on commit 249a96d

Please sign in to comment.