Skip to content

Commit

Permalink
Minor bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
wettenhj committed Apr 28, 2015
1 parent 50082c9 commit 59e9c02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MyDataEvents.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,7 @@ def endBusyCursorIfRequired():
raise
wx.CallAfter(endBusyCursorIfRequired)

def showDialog():
message = str(e)
def showDialog(message):
logger.error(message)
try:
wx.EndBusyCursor()
Expand All @@ -306,7 +305,8 @@ def showDialog():
dlg = wx.MessageDialog(None, message, "MyData",
wx.OK | wx.ICON_ERROR)
dlg.ShowModal()
wx.CallAfter(showDialog)
message = str(e)
wx.CallAfter(showDialog, message)
finally:
event.settingsDialog.okButton.Enable()
logger.debug("Finished running tempSettingsModel.Validate() 4")
Expand Down

0 comments on commit 59e9c02

Please sign in to comment.