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

bug in creation of the database

parent 86c13bd6
No related branches found
No related tags found
2 merge requests!2Origin/aura into master,!1development branch to master branch
......@@ -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