URI: 
       thandle exceptions returned by update_password - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit b5c0cc61902bd912e979f73fa0fe46c32b3c23bc
   DIR parent b4f353291ab3ce71bf7f513f3312cf7b0fa28279
  HTML Author: ecdsa <ecdsa@github>
       Date:   Mon, 29 Apr 2013 10:41:46 +0200
       
       handle exceptions returned by update_password
       
       Diffstat:
         M gui/gui_classic.py                  |       9 ++++++++-
       
       1 file changed, 8 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/gui/gui_classic.py b/gui/gui_classic.py
       t@@ -1584,7 +1584,14 @@ class ElectrumWindow(QMainWindow):
                    QMessageBox.warning(parent, _('Error'), _('Passwords do not match'), _('OK'))
                    return ElectrumWindow.change_password_dialog(wallet, parent) # Retry
        
       -        wallet.update_password(seed, password, new_password)
       +        try:
       +            wallet.update_password(seed, password, new_password)
       +        except:
       +            QMessageBox.warning(parent, _('Error'), _('Failed to update password'), _('OK'))
       +            return
       +
       +        QMessageBox.information(parent, _('Success'), _('Password was updated successfully'), _('OK'))
       +
                if parent: 
                    icon = QIcon(":icons/lock.png") if wallet.use_encryption else QIcon(":icons/unlock.png")
                    parent.password_button.setIcon( icon )