Browse Source

Handle another exception from some versions of dateutil.parser

tags/nilmdb-1.10.1
Jim Paris 9 years ago
parent
commit
78cfda32e3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      nilmdb/utils/time.py

+ 1
- 1
nilmdb/utils/time.py View File

@@ -87,7 +87,7 @@ def parse_time(toparse):
try:
return unix_to_timestamp(datetime_tz.datetime_tz.
smartparse(toparse).totimestamp())
except (ValueError, OverflowError):
except (ValueError, OverflowError, TypeError):
pass

# If it's parseable as a float, treat it as a Unix or NILM


Loading…
Cancel
Save