mirror of
https://github.com/evennia/evennia.git
synced 2026-04-02 05:57:16 +02:00
Made the error clearer when trying to start the server without first having created the database
This commit is contained in:
parent
8cdb5bec4f
commit
a53eadc0f1
1 changed files with 1 additions and 1 deletions
|
|
@ -459,7 +459,7 @@ def check_database():
|
|||
# Check so a database exists and is accessible
|
||||
from django.db import connection
|
||||
tables = connection.introspection.get_table_list(connection.cursor())
|
||||
if not isinstance(tables[0], basestring): # django 1.8+
|
||||
if not tables or not isinstance(tables[0], basestring): # django 1.8+
|
||||
tables = [tableinfo.name for tableinfo in tables]
|
||||
if tables and u'players_playerdb' in tables:
|
||||
# database exists and seems set up. Initialize evennia.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue