--- a/dialogs/DurationEditorDialog.py Tue Oct 03 16:12:55 2017 +0300
+++ b/dialogs/DurationEditorDialog.py Tue Oct 03 16:31:31 2017 +0300
@@ -117,8 +117,8 @@
def GetControlValueTestFunction(self, control):
def OnValueChanged(event):
try:
- value = float(control.GetValue())
- except ValueError, e:
+ float(control.GetValue())
+ except ValueError:
message = wx.MessageDialog(self, _("Invalid value!\nYou must fill a numeric value."), _("Error"), wx.OK | wx.ICON_ERROR)
message.ShowModal()
message.Destroy()
@@ -157,8 +157,8 @@
(self.Minutes, _("minutes")), (self.Seconds, _("seconds")),
(self.Milliseconds, _("milliseconds"))]:
try:
- value = float(control.GetValue())
- except ValueError, e:
+ float(control.GetValue())
+ except ValueError:
errors.append(name)
if len(errors) > 0:
if len(errors) == 1: