Browse Source

wizard.py: (trivial) fix type hint and an f-string

master
SomberNight 3 years ago
parent
commit
ad58916729
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 4
      electrum/wizard.py

4
electrum/wizard.py

@ -13,7 +13,7 @@ from electrum.mnemonic import is_any_2fa_seed_type
class WizardViewState(NamedTuple): class WizardViewState(NamedTuple):
view: str view: Optional[str]
wizard_data: Dict[str, Any] wizard_data: Dict[str, Any]
params: Dict[str, Any] params: Dict[str, Any]
@ -124,7 +124,7 @@ class AbstractWizard:
self._logger.debug(f'view "{view}" last: {l}') self._logger.debug(f'view "{view}" last: {l}')
return l return l
else: else:
raise Exception('last handler for view {view} is not callable nor a bool literal') raise Exception(f'last handler for view {view} is not callable nor a bool literal')
def finished(self, wizard_data): def finished(self, wizard_data):
self._logger.debug('finished.') self._logger.debug('finished.')

Loading…
Cancel
Save