Skip to content

Commit

Permalink
Fixed error when priority wasnt given
Browse files Browse the repository at this point in the history
  • Loading branch information
vJan00 committed Feb 2, 2024
1 parent 76593c5 commit 3751e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def transcribe_post():
if ('file' not in request.files) and (not link):
return {"error": "No file or link"}, 415

if not priority.isnumeric():
if not priority or not priority.isnumeric():
return {"error": "Priority nan"}, 400

if (100 / round(psutil.disk_usage('./').total / 1000000000, 1)
Expand Down

0 comments on commit 3751e14

Please sign in to comment.