Skip to content

Commit

Permalink
Removed encoding from json loads call
Browse files Browse the repository at this point in the history
This fixes compatibility with Python 3.9.
  • Loading branch information
devos50 committed Nov 22, 2020
1 parent c16d7b1 commit 76037b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tribler-gui/tribler_gui/tribler_request_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def on_finished(self, request):
if not self.decode_json_response:
self.received_json.emit(data)
return
json_result = json.loads(bytes(data), encoding='latin_1')
json_result = json.loads(bytes(data))
if (
'error' in json_result
and self.capture_core_errors
Expand Down

0 comments on commit 76037b8

Please sign in to comment.