Skip to content

Commit

Permalink
fix daveProgram case of null body
Browse files Browse the repository at this point in the history
  • Loading branch information
previ committed Dec 31, 2023
1 parent ca68f8f commit e0582ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coderbot/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def saveNewProgram(body):

def saveProgram(id, body):
overwrite = body.get("overwrite")
name = body["name"]
name = body.get("name", None)
existing_program = prog_engine.load(id)
if existing_program is None:
return {}, 404
Expand Down

0 comments on commit e0582ac

Please sign in to comment.