removed KeyError printing
This commit is contained in:
@@ -6,11 +6,7 @@ class BSVar:
|
||||
self.cache = cache
|
||||
|
||||
def get(self):
|
||||
try:
|
||||
return self.cache.data[self.name]
|
||||
except KeyError as e:
|
||||
print("KeyError:", e) #TODO: remove / KeyError should be impossible to trigger
|
||||
return None
|
||||
return self.cache.data.get(self.name)
|
||||
|
||||
value = property(get)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user