added some error checking around lazy_login file

full_example
Mark Cotton 2023-05-30 08:14:59 -05:00
parent 8e7255a308
commit 346387222e
1 changed files with 4 additions and 1 deletions

View File

@ -34,7 +34,10 @@ class EagleEyev3():
self.lazy_login = True
if self.lazy_login:
self._load_access_token()
try:
self._load_access_token()
except FileNotFoundError as e:
logging.warn("self.lazy_login is set to {self.lazy_login} but could not find .lazy_login file to load")
def _load_vars_from_settings(self):
"""