mirror of
https://github.com/evennia/evennia.git
synced 2026-03-17 05:16:31 +01:00
Fix launcher error that caused problems when migrating non-sqlite databases
This commit is contained in:
parent
ed92f9a177
commit
2c6405edde
1 changed files with 2 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ from twisted.protocols import amp
|
|||
from twisted.internet import reactor, endpoints
|
||||
import django
|
||||
from django.core.management import execute_from_command_line
|
||||
from django.db.utils import ProgrammingError
|
||||
|
||||
# Signal processing
|
||||
SIG = signal.SIGINT
|
||||
|
|
@ -1454,7 +1455,7 @@ def check_database(always_return=False):
|
|||
|
||||
try:
|
||||
AccountDB.objects.get(id=1)
|
||||
except django.db.utils.OperationalError as e:
|
||||
except (django.db.utils.OperationalError, ProgrammingError) as e:
|
||||
if always_return:
|
||||
return False
|
||||
print(ERROR_DATABASE.format(traceback=e))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue