summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nvm2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/nvm b/bin/nvm
index 47a413c..61be2a5 100755
--- a/bin/nvm
+++ b/bin/nvm
@@ -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