Skip to content

Commit d6dba38

Browse files
authored
Remove now-unused exceptions related to former SSH channels (#3681)
See PR #3677 for removal of SSH channel code, and issue #3515 for an overall channel removal. ## Type of change - Code maintenance/cleanup
1 parent c392583 commit d6dba38

File tree

2 files changed

+0
-72
lines changed

2 files changed

+0
-72
lines changed

docs/reference.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,6 @@ Exceptions
170170
parsl.providers.errors.SchedulerMissingArgs
171171
parsl.providers.errors.ScriptPathError
172172
parsl.channels.errors.ChannelError
173-
parsl.channels.errors.BadHostKeyException
174-
parsl.channels.errors.BadScriptPath
175-
parsl.channels.errors.BadPermsScriptPath
176-
parsl.channels.errors.AuthException
177-
parsl.channels.errors.SSHException
178173
parsl.channels.errors.FileCopyException
179174
parsl.executors.high_throughput.errors.WorkerLost
180175
parsl.executors.high_throughput.interchange.ManagerLost

parsl/channels/errors.py

Lines changed: 0 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -17,73 +17,6 @@ def __str__(self) -> str:
1717
return "Hostname:{0}, Reason:{1}".format(self.hostname, self.reason)
1818

1919

20-
class BadHostKeyException(ChannelError):
21-
''' SSH channel could not be created since server's host keys could not
22-
be verified
23-
24-
Contains:
25-
reason(string)
26-
e (paramiko exception object)
27-
hostname (string)
28-
'''
29-
30-
def __init__(self, e: Exception, hostname: str) -> None:
31-
super().__init__("SSH channel could not be created since server's host keys could not be "
32-
"verified", e, hostname)
33-
34-
35-
class BadScriptPath(ChannelError):
36-
''' An error raised during execution of an app.
37-
What this exception contains depends entirely on context
38-
Contains:
39-
reason(string)
40-
e (paramiko exception object)
41-
hostname (string)
42-
'''
43-
44-
def __init__(self, e: Exception, hostname: str) -> None:
45-
super().__init__("Inaccessible remote script dir. Specify script_dir", e, hostname)
46-
47-
48-
class BadPermsScriptPath(ChannelError):
49-
''' User does not have permissions to access the script_dir on the remote site
50-
51-
Contains:
52-
reason(string)
53-
e (paramiko exception object)
54-
hostname (string)
55-
'''
56-
57-
def __init__(self, e: Exception, hostname: str) -> None:
58-
super().__init__("User does not have permissions to access the script_dir", e, hostname)
59-
60-
61-
class AuthException(ChannelError):
62-
''' An error raised during execution of an app.
63-
What this exception contains depends entirely on context
64-
Contains:
65-
reason(string)
66-
e (paramiko exception object)
67-
hostname (string)
68-
'''
69-
70-
def __init__(self, e: Exception, hostname: str) -> None:
71-
super().__init__("Authentication to remote server failed", e, hostname)
72-
73-
74-
class SSHException(ChannelError):
75-
''' if there was any other error connecting or establishing an SSH session
76-
77-
Contains:
78-
reason(string)
79-
e (paramiko exception object)
80-
hostname (string)
81-
'''
82-
83-
def __init__(self, e: Exception, hostname: str) -> None:
84-
super().__init__("Error connecting or establishing an SSH session", e, hostname)
85-
86-
8720
class FileCopyException(ChannelError):
8821
''' File copy operation failed
8922

0 commit comments

Comments
 (0)