Skip to content

Commit

Permalink
Fix off-by-one error (stupid python)
Browse files Browse the repository at this point in the history
  • Loading branch information
baszoetekouw committed Jan 30, 2024
1 parent 5763c16 commit 138fba6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self, config):
self.password = config.get('passwd', 'changethispassword')
self.verify_ssl = config.get('verify_ssl', True)
self.timeout = config.get('timeout', None)
self.retry = config.get('retry', 1)
self.retry = config.get('retry', 3)
self.recording_requested = config.get('recorder', False)

if config.get("ipv4_only", False):
Expand Down Expand Up @@ -70,7 +70,7 @@ class SBSNoContentException(Exception):
logger.debug(f"API: {request}...")

# retry the entire process a few times`
for i in range(1, self.retry):
for i in range(0, self.retry):
try:
r = self.session.request(
method,
Expand Down

0 comments on commit 138fba6

Please sign in to comment.