From abc10e93d714bd44a8693be357b76ae1fda06537 Mon Sep 17 00:00:00 2001 From: Ernst Widerberg Date: Fri, 14 Jan 2022 12:11:50 +0100 Subject: Decrease database reconnection timer --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.py b/src/main.py index c3e5ad9..1340ba6 100755 --- a/src/main.py +++ b/src/main.py @@ -40,7 +40,7 @@ for i in range(10): f'Database not responding, will try again soon. Attempt {i + 1} of 10.') else: break - time.sleep(10) + time.sleep(1) else: print('Database did not respond after 10 attempts, quitting.') sys.exit(-1) -- cgit v1.1