From 1581a3bdd7bcae16122f9be2001bde36b0c771b1 Mon Sep 17 00:00:00 2001 From: norohind <60548839+norohind@users.noreply.github.com> Date: Tue, 17 Aug 2021 13:54:38 +0300 Subject: [PATCH] plugins/edsm.py: fix exception on logger.trace_on, wrong datatype to subtitle --- plugins/edsm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/edsm.py b/plugins/edsm.py index 5f23ba23..2f082c2f 100644 --- a/plugins/edsm.py +++ b/plugins/edsm.py @@ -685,6 +685,8 @@ def worker() -> None: # noqa: CCR001 C901 # Cant be broken up currently if any(p for p in pending if p['event'] in ('CarrierJump', 'FSDJump', 'Location', 'Docked')): data_elided = data.copy() data_elided['apiKey'] = '' + data_elided['message'] = data_elided['message'].decode('utf-8') + data_elided['commanderName'] = data_elided['commanderName'].decode('utf-8') logger.trace_if( 'journal.locations', "pending has at least one of ('CarrierJump', 'FSDJump', 'Location', 'Docked')"