From bcbe69672ed5b740d7d5c33d72315fa39edca2fb Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sat, 9 Jul 2022 03:49:45 +0200 Subject: [PATCH] qml gui: fix flake8 "F821 undefined name" errors --- electrum/gui/qml/qedaemon.py | 2 +- electrum/gui/qml/qewallet.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qml/qedaemon.py b/electrum/gui/qml/qedaemon.py index c5d5cddc6..429d9ace2 100644 --- a/electrum/gui/qml/qedaemon.py +++ b/electrum/gui/qml/qedaemon.py @@ -215,4 +215,4 @@ class QEDaemon(AuthMixin, QObject): def set_password(self, password): assert self._use_single_password self._logger.debug('about to set password to %s for ALL wallets' % password) - update_password_for_directory(self.daemon.config, self._password, password) + self.daemon.update_password_for_directory(old_password=self._password, new_password=password) diff --git a/electrum/gui/qml/qewallet.py b/electrum/gui/qml/qewallet.py index 39c0ae2e7..fbb35b7ac 100644 --- a/electrum/gui/qml/qewallet.py +++ b/electrum/gui/qml/qewallet.py @@ -17,6 +17,7 @@ from electrum.transaction import PartialTxOutput from electrum.invoices import (Invoice, InvoiceError, PR_DEFAULT_EXPIRATION_WHEN_CREATING, PR_PAID, PR_UNPAID, PR_UNKNOWN, PR_EXPIRED, PR_UNCONFIRMED) +from electrum.network import TxBroadcastError, BestEffortRequestFailed from .qeinvoicelistmodel import QEInvoiceListModel, QERequestListModel from .qetransactionlistmodel import QETransactionListModel