You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defon_tracker_error_alert(self, alert: lt.tracker_error_alert):
self._logger.error(f'On tracker error alert: {alert}') # <-- here# try-except block here is a workaround and has been added to solve# the issue: "UnicodeDecodeError: invalid continuation byte"try:
...
It is a regression of #5740: f-string formatting of the logging.error output should also be placed inside the following try/except block to have protection from UnicodeDecodeError.
As an additional protection, we can add a helper function like alert_to_str and use it in all places where we have {alert} formatting to be sure that all alerts can be safely converted to str
The text was updated successfully, but these errors were encountered:
Here:
It is a regression of #5740: f-string formatting of the
logging.error
output should also be placed inside the following try/except block to have protection from UnicodeDecodeError.As an additional protection, we can add a helper function like
alert_to_str
and use it in all places where we have{alert}
formatting to be sure that all alerts can be safely converted to strThe text was updated successfully, but these errors were encountered: