Skip to content

Commit

Permalink
fix: table already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfromyeg committed Dec 30, 2023
1 parent e324052 commit dcf3123
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bereal/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ def __repr__(self) -> str:

# Create the table
with app.app_context():
db.create_all()
try:
db.create_all()
except Exception as error:
logger.error("Could not create database: %s", error)


@app.route("/status")
Expand Down

0 comments on commit dcf3123

Please sign in to comment.