Skip to content

Commit

Permalink
remove retry arg max values
Browse files Browse the repository at this point in the history
  • Loading branch information
semuadmin committed Jul 30, 2024
1 parent 9e15471 commit 48fdca3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/pygnssutils/gnssntripclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,9 @@ def __init__(self, app=None, **kwargs):
}

try:
self._retries = max(int(kwargs.pop("retries", MAX_RETRY)), 0)
self._retryinterval = max(
int(kwargs.pop("retryinterval", RETRY_INTERVAL)), 1
)
self._timeout = max(int(kwargs.pop("timeout", INACTIVITY_TIMEOUT)), 3)
self._retries = int(kwargs.pop("retries", MAX_RETRY))
self._retryinterval = int(kwargs.pop("retryinterval", RETRY_INTERVAL))
self._timeout = int(kwargs.pop("timeout", INACTIVITY_TIMEOUT))
except (ParameterError, ValueError, TypeError) as err:
logger.critical(
f"Invalid input arguments {kwargs=}\n{err=}\nType gnssntripclient -h for help.",
Expand Down

0 comments on commit 48fdca3

Please sign in to comment.