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
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ class Application(object): ...@@ -40,7 +40,7 @@ class Application(object):
def create_account(self, name): def create_account(self, name):
for a in self.accounts: for a in self.accounts:
if a.name == name: if a.name == name:
raise NameAlreadyExists(name) raise NameAlreadyExists(a)
account_path = os.path.join(config.parameters['home'], name) account_path = os.path.join(config.parameters['home'], name)
if not os.path.exists(account_path): if not os.path.exists(account_path):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment