Skip to content

Commit

Permalink
print refresh error
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonDane committed May 22, 2024
1 parent bb0ecd8 commit d32b69d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion fennel_invest_api/fennel.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,9 @@ def _verify_login(self):
self.refresh_token()
self.get_account_ids()
return True
except Exception:
except Exception as e:
# Unable to refresh, clear credentials
print(f"Failed to refresh token: {e}")
self._clear_credentials()
return False

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="fennel_invest_api",
version="1.0.6",
version="1.0.7",
description="Unofficial Fennel.com Invest API written in Python Requests",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
Expand Down

0 comments on commit d32b69d

Please sign in to comment.