Skip to content

Commit

Permalink
changed exception type in targetPath key check
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdorsch committed Mar 4, 2021
1 parent df7bc9d commit 8dc5eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compute/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def submit_job_path():

try:
targetPath = request.form["targetPath"]
except Exception as e:
except KeyError as e:
data = jsonify(description="Failed to submit job", error="'targetPath' parameter not set in request")
return data, 400

Expand Down

0 comments on commit 8dc5eef

Please sign in to comment.