qml: log error if not able to retrieve private key for address
This commit is contained in:
committed by
SomberNight
parent
1047200a94
commit
ba59a03b8d
@@ -127,7 +127,8 @@ class QEAddressDetails(AuthMixin, QObject):
|
||||
def retrieve_private_key(self):
|
||||
try:
|
||||
self._privkey = self._wallet.wallet.export_private_key(self._address, self._wallet.password)
|
||||
except Exception:
|
||||
except Exception as e:
|
||||
self._logger.error(f'problem retrieving privkey: {str(e)}')
|
||||
self._privkey = ''
|
||||
|
||||
self.detailsChanged.emit()
|
||||
|
||||
Reference in New Issue
Block a user