diff --git a/moler/device/proxy_pc.py b/moler/device/proxy_pc.py index 41ec8f13c..fd241609a 100644 --- a/moler/device/proxy_pc.py +++ b/moler/device/proxy_pc.py @@ -155,8 +155,10 @@ def _prepare_state_prompts(self): else: state_prompts = self._prepare_state_prompts_without_proxy_pc() except KeyError as ke: - raise DeviceFailure(device=self.__class__.__name__, - message=f"Wrong configuration. Cannot get prompts. {ke} {repr(ke)}") + raise DeviceFailure( + device=self.__class__.__name__, + message=f"Wrong configuration. Cannot get prompts. {ke} {repr(ke)}" + ) self._update_dict(self._state_prompts, state_prompts) diff --git a/moler/device/unixremote.py b/moler/device/unixremote.py index f396ba537..fc3f90df4 100644 --- a/moler/device/unixremote.py +++ b/moler/device/unixremote.py @@ -451,8 +451,10 @@ def _overwrite_prompts(self): self._configurations[UnixRemote.connection_hops][UnixRemote.unix_local][UnixRemote.unix_remote][ "command_params"]["expected_prompt"] except KeyError as ke: - raise DeviceFailure(device=self.__class__.__name__, - message=f"Wrong configuration. Cannot get prompts. {ke} {repr(ke)}") + raise DeviceFailure( + device=self.__class__.__name__, + message=f"Wrong configuration. Cannot get prompts. {ke} {repr(ke)}" + ) def _get_packages_for_state(self, state, observer): """