Skip to content
Snippets Groups Projects
Commit a5571736 authored by Vincent Texier's avatar Vincent Texier
Browse files

Fix bug when adding an account name that already exists

parent 869f5466
Branches
Tags
No related merge requests found
......@@ -40,7 +40,7 @@ class Application(object):
def create_account(self, name):
for a in self.accounts:
if a.name == name:
raise NameAlreadyExists(name)
raise NameAlreadyExists(a)
account_path = os.path.join(config.parameters['home'], name)
if not os.path.exists(account_path):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment