From 670a97c75347d2a836d913cd5ea9a270af719410 Mon Sep 17 00:00:00 2001 From: Jernej Urankar Date: Thu, 8 Jun 2017 17:00:35 +0200 Subject: [PATCH] [FIX] Error Reporting: open encode as unicode https://sentry.io/biolab/orange3/issues/204303618/ --- Orange/canvas/application/errorreporting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Orange/canvas/application/errorreporting.py b/Orange/canvas/application/errorreporting.py index 6cf6b01539a..ef0e100d078 100644 --- a/Orange/canvas/application/errorreporting.py +++ b/Orange/canvas/application/errorreporting.py @@ -225,7 +225,7 @@ def _find_widget_frame(tb): except Exception: pass data[F.WIDGET_SCHEME] = filename - with open(filename) as f: + with open(filename, encoding='utf-8') as f: data['_' + F.WIDGET_SCHEME] = f.read() data[F.VERSION] = VERSION_STR data[F.ENVIRONMENT] = 'Python {} on {} {} {} {}'.format(