From 1797eb409516100292320f2737faa901a36235fc Mon Sep 17 00:00:00 2001 From: Marcin Usielski Date: Wed, 6 Nov 2024 07:21:13 +0000 Subject: [PATCH] hf3 --- moler/device/proxy_pc.py | 3 ++- moler/device/unixremote.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/moler/device/proxy_pc.py b/moler/device/proxy_pc.py index 9d85b1c98..41ec8f13c 100644 --- a/moler/device/proxy_pc.py +++ b/moler/device/proxy_pc.py @@ -155,7 +155,8 @@ def _prepare_state_prompts(self): else: state_prompts = self._prepare_state_prompts_without_proxy_pc() except KeyError as ke: - raise DeviceFailure(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 525c429f5..f396ba537 100644 --- a/moler/device/unixremote.py +++ b/moler/device/unixremote.py @@ -451,7 +451,8 @@ 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(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): """