Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style fix #552

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading