fixes
This commit is contained in:
8
main.py
8
main.py
@@ -6,7 +6,9 @@ session = get_session()
|
||||
|
||||
if __name__ == "__main__":
|
||||
group_instances = getGroupInstances()
|
||||
if group_instances is not []:
|
||||
if not group_instances:
|
||||
print("No group instances were found! Nothing to do...")
|
||||
else:
|
||||
for instance in group_instances:
|
||||
try:
|
||||
db_instance = DBGroupInstance(timestamp=datetime.now(),
|
||||
@@ -17,6 +19,4 @@ if __name__ == "__main__":
|
||||
session.commit()
|
||||
print("Instance log added")
|
||||
except Exception as e:
|
||||
print(f"Exception {e}")
|
||||
else:
|
||||
print("No group instances! Nothing to do")
|
||||
print(f"Exception {e}")
|
Reference in New Issue
Block a user