mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
/api/generate send back error message
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user