aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--snekbox/api/resources/eval.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/snekbox/api/resources/eval.py b/snekbox/api/resources/eval.py
index d083b19..88bbf96 100644
--- a/snekbox/api/resources/eval.py
+++ b/snekbox/api/resources/eval.py
@@ -128,6 +128,8 @@ class EvalResource:
binary_path = body.get("binary_path")
if binary_path:
binary_path = Path(binary_path)
+ if not binary_path.exists():
+ raise falcon.HTTPBadRequest(title="binary_path does not exist")
if not binary_path.is_file():
raise falcon.HTTPBadRequest(title="binary_path is not a file")