dialogs/ForceVariableDialog.py
changeset 1846 14b40afccd69
parent 1782 5b6ad7a7fd9d
child 1881 091005ec69c4
--- a/dialogs/ForceVariableDialog.py	Tue Oct 03 16:12:55 2017 +0300
+++ b/dialogs/ForceVariableDialog.py	Tue Oct 03 16:31:31 2017 +0300
@@ -103,7 +103,7 @@
         year, month, day = result.groups()
         try:
             date = datetime.datetime(int(year), int(month), int(day))
-        except ValueError, e:
+        except ValueError:
             return None
         base_date = datetime.datetime(1970, 1, 1)
         return date - base_date
@@ -117,7 +117,7 @@
         year, month, day, hours, minutes, seconds = result.groups()
         try:
             date = datetime.datetime(int(year), int(month), int(day), int(hours), int(minutes), int(float(seconds)), int((float(seconds) * SECOND) % SECOND))
-        except ValueError, e:
+        except ValueError:
             return None
         base_date = datetime.datetime(1970, 1, 1)
         return date - base_date