We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bec59b8 commit f10242eCopy full SHA for f10242e
app/service/rest.py
@@ -359,7 +359,7 @@ def get_api_keys(
359
if min_expiry_days is not None and min_expiry_days <= 0:
360
error = f"Minimum expiry days '{min_expiry_days}' must be greater than 0"
361
raise InvalidRequest(error, status_code=400)
362
- if max_expiry_days and max_expiry_days < 0:
+ if max_expiry_days is not None and max_expiry_days <= 0:
363
error = f"Maximum expiry days '{max_expiry_days}' must be greater than 0"
364
365
0 commit comments