/api/generate send back error message

This commit is contained in:
Fabian Dill 2021-05-14 14:12:21 +02:00
parent c24d6a0785
commit 13fe1f2ea2
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ def generate_api():
"wait_api_url": url_for("api.wait_seed_api", seed=gen.id, _external=True),
"url": url_for("wait_seed", seed=gen.id, _external=True)}, 201
except Exception as e:
raise
return {"text": "Uncaught Exception:" + str(e)}, 500