Browse code

Old-style exception storage

Yaroslav Shirokov authored on 2013/02/21 06:45:50
Showing 1 changed files
... ...
@@ -395,7 +395,7 @@ def time_to_epoch(t):
395 395
             # Try to parse it as a timestamp string
396 396
             try:
397 397
                 return time.strptime(t)
398
-            except ValueError as ex:
398
+            except ValueError, ex:
399 399
                 # Will fall through
400 400
                 debug("Failed to parse date with strptime: %s", ex)
401 401
                 pass