Skip to content

Commit

Permalink
Print out account ID if toy account already exists
Browse files Browse the repository at this point in the history
Signed-off-by: F.N. Claessen <felix@seita.nl>
  • Loading branch information
Flix6x committed Nov 15, 2022
1 parent e60f97d commit 625bc2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flexmeasures/cli/data_add.py
Expand Up @@ -1045,7 +1045,7 @@ def add_toy_account(kind: str, name: str):
# make an account (if not exist)
account = Account.query.filter(Account.name == name).one_or_none()
if account:
click.echo(f"Account {name} already exists.")
click.echo(f"Account already exists: {account}")
return
# make an account user (account-admin?)
email = "toy-user@flexmeasures.io"
Expand Down

0 comments on commit 625bc2b

Please sign in to comment.