From 47033369bd947e65e2411cfcbc8208521429931c Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Mon, 17 Apr 2023 09:43:31 +0200 Subject: [PATCH] qml: auth.py use f'' string format notation --- electrum/gui/qml/auth.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/electrum/gui/qml/auth.py b/electrum/gui/qml/auth.py index c8dd3d825..1d1e5104a 100644 --- a/electrum/gui/qml/auth.py +++ b/electrum/gui/qml/auth.py @@ -34,7 +34,7 @@ class AuthMixin: r = func(self, *args, **kwargs) return r except Exception as e: - self._auth_logger.error('Error executing wrapped fn(): %s' % repr(e)) + self._auth_logger.error(f'Error executing wrapped fn(): {repr(e)}') raise e finally: delattr(self,'__auth_fcall') @@ -51,9 +51,9 @@ class AuthMixin: if hasattr(self, reject): getattr(self, reject)() else: - self._auth_logger.error('Reject method \'%s\' not defined' % reject) + self._auth_logger.error(f'Reject method "{reject}" not defined') except Exception as e: - self._auth_logger.error('Error executing reject function \'%s\': %s' % (reject, repr(e))) + self._auth_logger.error(f'Error executing reject function "{reject}": {repr(e)}') raise e finally: delattr(self, '__auth_fcall')