URI: 
       tfix #2524: add proper error message - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 298461aee2aeae5bcd86ce20e10b0a1ffa634f95
   DIR parent 828b0e5d708fec0e6fa1e65de8e1c6ff70ac7420
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Fri, 30 Jun 2017 12:20:19 +0200
       
       fix #2524: add proper error message
       
       Diffstat:
         M lib/commands.py                     |       2 ++
       
       1 file changed, 2 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/lib/commands.py b/lib/commands.py
       t@@ -361,6 +361,8 @@ class Commands:
            @command('wp')
            def importprivkey(self, privkey):
                """Import a private key. """
       +        if not self.wallet.can_import_privkey():
       +            return "Error: This type of wallet cannot import private keys. Try to create a new wallet with that key."
                try:
                    addr = self.wallet.import_key(privkey, self._password)
                    out = "Keypair imported: " + addr