Skip to content

Commit

Permalink
Fixed UnicodeDecodeError in the GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
devos50 committed Jun 23, 2020
1 parent fe7af88 commit 4cdbde4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tribler-gui/tribler_gui/core_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ def __init__(self, api_port, api_key):

def on_core_read_ready(self):
raw_output = bytes(self.core_process.readAll())
decoded_output = raw_output.decode(errors="replace")
if b'Traceback' in raw_output:
self.core_traceback = raw_output.decode()
print(raw_output.decode().strip())
self.core_traceback = decoded_output
print(decoded_output.strip())

def on_core_finished(self, exit_code, exit_status):
if self.shutting_down and self.should_stop_on_shutdown:
Expand Down

0 comments on commit 4cdbde4

Please sign in to comment.