Skip to content

Commit

Permalink
Merge pull request #1625 from ales-erjavec/error-report-key-error
Browse files Browse the repository at this point in the history
[FIX] errorreporting: Fix an KeyError for a missing 'Widget Module' entry
  • Loading branch information
kernc authored Oct 5, 2016
2 parents cc4d147 + 34db15f commit 751f676
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Orange/canvas/application/errorreporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ def __init__(self, data):
icon = QApplication.style().standardIcon(QStyle.SP_MessageBoxWarning)
F = self.DataField

def _finished(*, key=(data[F.MODULE], data[F.WIDGET_MODULE]),
filename=data[F.WIDGET_SCHEME]):
def _finished(*, key=(data.get(F.MODULE),
data.get(F.WIDGET_MODULE)),
filename=data.get(F.WIDGET_SCHEME)):
self._cache.add(key)
try: os.remove(filename)
except Exception: pass
Expand Down

0 comments on commit 751f676

Please sign in to comment.