From 3fdfd23ca995893390f6ce77f468f91f3b4f33fc Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 28 May 2015 15:27:22 +0200 Subject: [PATCH] add check in importprivkey --- lib/commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/commands.py b/lib/commands.py index 05e5628cd..5e67f8097 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -277,6 +277,7 @@ class Commands: return s.encode('utf8') def importprivkey(self, sec): + assert self.wallet.can_import() try: addr = self.wallet.import_key(sec,self.password) out = "Keypair imported: ", addr