Skip to content
Snippets Groups Projects
Commit 87051196 authored by inso's avatar inso
Browse files

HotFixed a bug in account creationg

parent 184282db
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ class Application(object):
def create_account(self, name):
for a in self.accounts:
if a.name == name:
if a == name:
raise NameAlreadyExists(a)
account_path = os.path.join(config.parameters['home'], name)
......@@ -52,7 +52,7 @@ class Application(object):
[],
[],
config.parameters)
self.accounts.append(account)
self.accounts[name] = account
self.current_account = account
return account
......
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