Skip to content

Commit 2eaed3d

Browse files
authored
Merge pull request #80 from E-D-A/E-D-A-patch-1
Update for loop to infinity in http_client.py
2 parents c027e6d + 71eea16 commit 2eaed3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

steembase/http_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def exec(self, name, *args, api=None, return_with_args=None, _ret_cnt=0, kwargs=
159159
# try switching nodes before giving up
160160
if _ret_cnt > 2:
161161
time.sleep(_ret_cnt) # we should wait only a short period before trying the next node, but still slowly increase backoff
162-
elif _ret_cnt > 10:
162+
if _ret_cnt > 10:
163163
raise e
164164
self.next_node()
165165
logging.debug('Switched node to %s due to exception: %s' %

0 commit comments

Comments
 (0)