Skip to content

Commit

Permalink
Add old ally format check
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonDane committed Aug 2, 2023
1 parent 909f052 commit 6380ff0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions allyAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ def ally_init(ALLY_EXTERNAL=None, ALLY_ACCOUNT_NUMBERS_EXTERNAL=None):
account = account.split(":")
for nbr in account_nbrs_list:
for num in nbr.split(":"):
if len(account) != 4:
print(f"{name}: Too many parameters for Ally account, please see README.md and .env.example, skipping...")
return None
params = {
"ALLY_CONSUMER_KEY": account[0],
"ALLY_CONSUMER_SECRET": account[1],
Expand Down

0 comments on commit 6380ff0

Please sign in to comment.