Skip to content

Commit

Permalink
Style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-usielski committed Nov 6, 2024
1 parent 1797eb4 commit 441d5d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions moler/device/proxy_pc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
6 changes: 4 additions & 2 deletions moler/device/unixremote.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit 441d5d1

Please sign in to comment.