added small comment

This commit is contained in:
Johannes Findeisen 2020-10-05 01:30:03 +02:00
commit 2ebd02f7d2

2
uplink
View file

@ -114,6 +114,8 @@ def get_data(config, inc):
config["database"]) config["database"])
except Exception as err: except Exception as err:
logger.error("ERROR: Database connection failed!" + str(err)) logger.error("ERROR: Database connection failed!" + str(err))
# see https://stackoverflow.com/questions/1489669/how-to-exit-the-entire-application-from-a-python-thread
# maybe the following is better. need to evaluate:
#thread.interrupt_main() #thread.interrupt_main()
os._exit(1) os._exit(1)