URI: 
       thandle exceptions raised if trezor is not found - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 57e50ee326db4fddc3834c7e47a05c6da7dd35a0
   DIR parent 20f93f7df0752d81f49a69480d109b4b6972a313
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Tue, 19 Aug 2014 11:03:24 +0200
       
       handle exceptions raised if trezor is not found
       
       Diffstat:
         M gui/qt/installwizard.py             |       6 +++++-
         M plugins/trezor.py                   |       6 +++++-
       
       2 files changed, 10 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/gui/qt/installwizard.py b/gui/qt/installwizard.py
       t@@ -421,7 +421,11 @@ class InstallWizard(QDialog):
                        wallet.add_master_public_key("remote/", xpub2)
        
                    elif action == 'create_accounts':
       -                wallet.create_accounts(password)
       +                try:
       +                    wallet.create_accounts(password)
       +                except BaseException as e:
       +                    QMessageBox.information(None, _('Error'), str(e), _('OK'))
       +                    return
                        self.waiting_dialog(wallet.synchronize)
        
                    elif action == 'create_cold_seed':
   DIR diff --git a/plugins/trezor.py b/plugins/trezor.py
       t@@ -70,7 +70,11 @@ class Plugin(BasePlugin):
        
            def installwizard_restore(self, wizard, storage):
                wallet = TrezorWallet(storage)
       -        wallet.create_accounts(None)
       +        try:
       +            wallet.create_accounts(None)
       +        except BaseException as e:
       +            QMessageBox.information(None, _('Error'), str(e), _('OK'))
       +            return
                return wallet
        
            def send_tx(self, tx):