/api/generate send back error message
This commit is contained in:
parent
c24d6a0785
commit
13fe1f2ea2
|
@ -57,7 +57,7 @@ def generate_api():
|
||||||
"wait_api_url": url_for("api.wait_seed_api", seed=gen.id, _external=True),
|
"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
|
"url": url_for("wait_seed", seed=gen.id, _external=True)}, 201
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise
|
return {"text": "Uncaught Exception:" + str(e)}, 500
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue