We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dac636f commit 2a0defbCopy full SHA for 2a0defb
acl_loader/main.py
@@ -115,8 +115,10 @@ def read_sessions_info(self):
115
self.sessions_db_info = self.configdb.get_table(self.MIRROR_SESSION)
116
for key in self.sessions_db_info.keys():
117
app_db_info = self.appdb.get_all(self.appdb.APPL_DB, "{}:{}".format(self.MIRROR_SESSION, key))
118
-
119
- status = app_db_info.get("status", "inactive")
+ if app_db_info:
+ status = app_db_info.get("status", "inactive")
120
+ else:
121
+ status = "error"
122
self.sessions_db_info[key]["status"] = status
123
124
def get_sessions_db_info(self):
0 commit comments