Skip to content

Commit

Permalink
errorreporting: Fix an KeyError for a missing 'Widget Module' entry
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec authored and kernc committed Oct 5, 2016
1 parent cc4d147 commit 34db15f
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 34db15f

Please sign in to comment.