Skip to content

Commit

Permalink
Edit authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanramoscfa committed Jan 18, 2024
1 parent 6915b55 commit 2877e0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.0.4"
__version__ = "3.0.5"
5 changes: 4 additions & 1 deletion authentication/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def access_api(self):
:rtype: tuple
"""
oauth = self.get_oauth()
verifier_code = oauth.get_verification_code(self.dev, self.headless)
verifier_code = oauth.get_verification_code(self.headless)
tokens = self.get_access_tokens(oauth, verifier_code)

return (
Expand All @@ -166,6 +166,9 @@ def etrade_login(self):
print('ConnectionError: Trying again with chrome.')
time.sleep(self.sleep)
self.sleep *= 2 # Exponential backoff
# except AttributeError:
# time.sleep(self.sleep)
# self.sleep *= 2 # Exponential backoff
raise Exception("Failed to connect to Etrade API after multiple retries")

@staticmethod
Expand Down

0 comments on commit 2877e0d

Please sign in to comment.