From 42a233738238a91d4ae0fad13218f0f4939ab6e8 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 16 Jul 2022 00:13:05 +0200 Subject: ensure that .direction exists --- bin/nvm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/nvm b/bin/nvm index 86d491c..42a923a 100755 --- a/bin/nvm +++ b/bin/nvm @@ -162,6 +162,7 @@ class Trip: obj[key] = None self.cancelled = None + self.direction = None self.__dict__.update(obj) self.direction_area = None @@ -291,6 +292,7 @@ class Stopover: class Departure: def __init__(self, obj): + self.direction = None self.__dict__.update(obj) if not "cancelled" in obj: -- cgit v1.2.3