From a53eadc0f18cc8303febd36a1313e4c6df3376a8 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 3 May 2015 13:37:25 +0200 Subject: [PATCH] Made the error clearer when trying to start the server without first having created the database --- evennia/server/evennia_launcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/server/evennia_launcher.py b/evennia/server/evennia_launcher.py index 907a214009..987667cba6 100644 --- a/evennia/server/evennia_launcher.py +++ b/evennia/server/evennia_launcher.py @@ -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.