From a5571736b9d5e6147a6bcf52d71c1f075644992d Mon Sep 17 00:00:00 2001 From: Vincent Texier <vit@free.fr> Date: Fri, 19 Dec 2014 21:31:27 +0100 Subject: [PATCH] Fix bug when adding an account name that already exists --- src/cutecoin/core/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cutecoin/core/app.py b/src/cutecoin/core/app.py index 09b44625..396aa7ab 100644 --- a/src/cutecoin/core/app.py +++ b/src/cutecoin/core/app.py @@ -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): -- GitLab