mirror of
https://github.com/evennia/evennia.git
synced 2026-04-03 06:27:17 +02:00
Fix launcher error that caused problems when migrating non-sqlite databases
This commit is contained in:
parent
b4e7007e36
commit
e5ec9b0f51
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