Skip to content
Snippets Groups Projects
Commit 37cb4009 authored by Gottfried Gaisbauer's avatar Gottfried Gaisbauer
Browse files

bug in creation of the database

parent 1921f38b
No related branches found
No related tags found
No related merge requests found
......@@ -29,9 +29,9 @@ frame_duration="0.4"
frame_size=""
[database]
db_user="aura"
db_name="aura"
db_pass="aura"
db_user="engine"
db_name="engine"
db_pass="engine"
db_host="localhost"
[socket]
......
......@@ -114,8 +114,10 @@ class AuraScheduler(ExceptionLogger, threading.Thread):
try:
ScheduleEntry.select_all()
except sqlalchemy.exc.ProgrammingError as e:
if e.__dict__["code"] == "f405": # error for no such table
ScheduleEntry.recreate_db()
errcode = e.orig.args[0]
if errcode == 1146: # error for no such table
x = AuraDatabaseModel()
x.recreate_db()
else:
raise
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment