Skip to content

Commit

Permalink
error, if host is not local or remote
Browse files Browse the repository at this point in the history
  • Loading branch information
luto committed Mar 23, 2023
1 parent cb8d7aa commit d50c30c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/shellinspector/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ def run(self, commands, sshconfig, context):
session_key[1],
session_key[2],
)
else:
raise NotImplementedError(
f"unknown host {cmd.host}, chose from: local, remote."
)

with self._get_session(*session_key) as session:
self.set_environment(session, context)
Expand Down

0 comments on commit d50c30c

Please sign in to comment.