diff options
author | Kristofer Hallin <kristofer@sunet.se> | 2022-01-18 13:22:25 +0100 |
---|---|---|
committer | Kristofer Hallin <kristofer@sunet.se> | 2022-01-18 13:22:25 +0100 |
commit | 5ee4799c88c48097e09b48b6afceb43571f07aaf (patch) | |
tree | def8a83e7202d287890761bb2047ab78b85a9882 /src/main.py | |
parent | bb5029d512a58021718061aca439383c8b11e575 (diff) | |
parent | 88b1a1aa213cc70443254a05f2a8968fb7c43a48 (diff) |
Resolved conflict.
Diffstat (limited to 'src/main.py')
-rwxr-xr-x | src/main.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main.py b/src/main.py index a65971d..d6f420f 100755 --- a/src/main.py +++ b/src/main.py @@ -31,6 +31,23 @@ async def mock_x_total_count_header(request: Request, call_next): response.headers["X-Total-Count"] = "100" return response +<< << << < HEAD +== == == = +for i in range(10): + try: + db = DictDB() + except Exception: + print( + f'Database not responding, will try again soon. Attempt {i + 1} of 10.') + else: + break + time.sleep(1) +else: + print('Database did not respond after 10 attempts, quitting.') + sys.exit(-1) + +>>>>>> > main + def get_pubkey(): try: |