From 6dc6f5954bf4a1294df460747db01c52a6f0b016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Tue, 20 Oct 2020 11:29:46 +0200 Subject: [PATCH] fixed typo on connection recovery --- server/src/uds/core/jobs/scheduler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/uds/core/jobs/scheduler.py b/server/src/uds/core/jobs/scheduler.py index 0fc8f56d..9172233e 100644 --- a/server/src/uds/core/jobs/scheduler.py +++ b/server/src/uds/core/jobs/scheduler.py @@ -202,7 +202,7 @@ class Scheduler: if not isinstance(e, DatabaseError): logger.error('Unexpected exception at run loop %s: %s', e.__class__, e) try: - connection.close() + connections['default'].close() except Exception: logger.exception('Exception clossing connection at delayed task') logger.info('Exiting Scheduler because stop has been requested')