mirror of
https://github.com/hubHarmony/servii-backend.git
synced 2024-11-17 21:40:31 +00:00
[+] Corrected exception handling syntax
This commit is contained in:
parent
8a282012e3
commit
2fe31596c0
2
app.py
2
app.py
@ -162,7 +162,7 @@ def upload():
|
||||
case 1:
|
||||
return generic_response_maker(http.HTTPStatus.NOT_ACCEPTABLE, "No file(s) were uploaded.")
|
||||
|
||||
except FileNotFoundError as e:
|
||||
except FileNotFoundError:
|
||||
return generic_response_maker(http.HTTPStatus.CONFLICT, "Please launch the server at least once.")
|
||||
|
||||
except KeyError as e:
|
||||
|
Loading…
Reference in New Issue
Block a user