diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/nvm | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -158,7 +158,7 @@ class Trip: for key in "departure plannedDeparture arrival plannedArrival".split(): try: obj[key] = dateutil.parser.parse(obj[key]) - except TypeError: + except (KeyError, TypeError): obj[key] = None self.cancelled = None |