Fixing things is fun.

Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
Cliff Hill
2024-02-28 15:54:35 -05:00
parent c49e1fa5f0
commit 11992be740
5 changed files with 123 additions and 100 deletions

View File

@@ -125,11 +125,7 @@ def get_jobs_by_service(service_id):
try:
limit_days = int(request.args["limit_days"])
except ValueError:
errors = {
"limit_days": [
f"{request.args['limit_days']} is not an integer"
]
}
errors = {"limit_days": [f"{request.args['limit_days']} is not an integer"]}
raise InvalidRequest(errors, status_code=400)
else:
limit_days = None