Skip to content

Commit 5880e87

Browse files
committed
add uuid
1 parent f561d46 commit 5880e87

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

coderbot/api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,10 @@ def runProgram(id):
326326
"""
327327
logging.debug("program_exec")
328328
prog = prog_engine.load(id)
329-
return prog.execute()
329+
if prog is not None:
330+
return prog.execute()
331+
else:
332+
return {}, 404
330333

331334
def stopProgram(id):
332335
"""

0 commit comments

Comments
 (0)