Skip to content

Commit 1ebbf93

Browse files
committed
ErrorReporting: Don't send scheme filename when no schema
When schema is not sent `data[WIDGET_SCHEME]` was not empty but contained the scheme's filename. Remove `WIDGET_SCHEME` from data when scheme is not sent.
1 parent e01a903 commit 1ebbf93

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Orange/canvas/application/errorreporting.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ def accept(self):
133133

134134
if QSettings().value('error-reporting/add-scheme', True, type=bool):
135135
data[F.WIDGET_SCHEME] = data['_' + F.WIDGET_SCHEME]
136+
else:
137+
data.pop(F.WIDGET_SCHEME, None)
136138
del data['_' + F.WIDGET_SCHEME]
137139

138140
def _post_report(data):

0 commit comments

Comments
 (0)