mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 07:21:13 -05:00
Fixing things is fun.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user