Autosave: 20260129-150543

This commit is contained in:
Flatlogic Bot 2026-01-29 15:05:45 +00:00
parent 212e4e71cc
commit c1eea39519
2 changed files with 3 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

View File

@ -21,11 +21,11 @@ class Command(BaseCommand):
db_conn.cursor() db_conn.cursor()
self.stdout.write(self.style.SUCCESS('Database available!')) self.stdout.write(self.style.SUCCESS('Database available!'))
return return
except OperationalError: except OperationalError as e:
self.stdout.write('Database unavailable, waiting 1 second...') self.stdout.write(f'Database unavailable ({e}), waiting 1 second...')
time.sleep(1) time.sleep(1)
except Exception as e: except Exception as e:
self.stdout.write(self.style.WARNING(f'Database error: {e}, waiting 1 second...')) self.stdout.write(self.style.WARNING(f'Database error: {e}, waiting 1 second...'))
time.sleep(1) time.sleep(1)
self.stdout.write(self.style.ERROR('Database unavailable after 30 seconds.')) self.stdout.write(self.style.ERROR('Database unavailable after 30 seconds.'))