... | ... |
@@ -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 |