Commit 129acb61 authored by BAIRE Anthony's avatar BAIRE Anthony
Browse files

catch all mysql errors in check_db()

parent 6a47cc55
......@@ -918,10 +918,8 @@ class DockerController:
log.debug("schedule job %d", job_id)
self.job_manager.process(job_id)
except sqlalchemy.exc.OperationalError as e:
if e.orig.__class__.__name__ == "OperationalError" and e.orig.args[0] == 1049:
log.warning("db not found: %s", e.orig.args)
return
raise
log.error("db error %s", e.orig.args)
return
def shutdown(self):
#TODO: graceful shutdown
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment