Skip to content

Commit

Permalink
Merge pull request #26 from amor71/create-portfolio
Browse files Browse the repository at this point in the history
bug-fix: handle case of failed run
  • Loading branch information
amor71 authored Jul 20, 2023
2 parents 72649d9 + 49a75f8 commit 0e38976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apigateway/missions/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def handle_post(request):
)

if not (run_id := create_run(user_id, model_portfolio)):
return None
return ("could not create rebalance run", 400)
print(f"created run with id {run_id}")

mission_id, created = save_new_mission(user_id, name, strategy)
Expand Down

0 comments on commit 0e38976

Please sign in to comment.