mirror of
https://github.com/usestrix/strix.git
synced 2026-09-14 23:21:15 +00:00
fix(login): treat overflowing timing values as invalid
This commit is contained in:
parent
5c61a2aee4
commit
93dc0019fa
1 changed files with 1 additions and 1 deletions
|
|
@ -421,7 +421,7 @@ def _json_object(response: requests.Response) -> dict[str, Any]:
|
|||
def _as_positive_int(value: Any, *, default: int) -> int:
|
||||
try:
|
||||
parsed = int(value)
|
||||
except (TypeError, ValueError):
|
||||
except (TypeError, ValueError, OverflowError):
|
||||
return default
|
||||
return parsed if parsed > 0 else default
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue