Skip to content

Commit

Permalink
Remove FileExists channel exception that is unused (#3651)
Browse files Browse the repository at this point in the history
This is part of staged removal of channels - see issue #3515 and PR #3650.

Co-authored-by: Kevin Hunter Kesling <[email protected]>
  • Loading branch information
benclifford and khk-globus authored Oct 24, 2024
1 parent 5f5aa46 commit 72f275f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
1 change: 0 additions & 1 deletion docs/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ Exceptions
parsl.channels.errors.BadHostKeyException
parsl.channels.errors.BadScriptPath
parsl.channels.errors.BadPermsScriptPath
parsl.channels.errors.FileExists
parsl.channels.errors.AuthException
parsl.channels.errors.SSHException
parsl.channels.errors.FileCopyException
Expand Down
17 changes: 0 additions & 17 deletions parsl/channels/errors.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
''' Exceptions raise by Apps.
'''
from typing import Optional

from parsl.errors import ParslError


Expand Down Expand Up @@ -60,21 +58,6 @@ def __init__(self, e: Exception, hostname: str) -> None:
super().__init__("User does not have permissions to access the script_dir", e, hostname)


class FileExists(ChannelError):
''' Push or pull of file over channel fails since a file of the name already
exists on the destination.
Contains:
reason(string)
e (paramiko exception object)
hostname (string)
'''

def __init__(self, e: Exception, hostname: str, filename: Optional[str] = None) -> None:
super().__init__("File name collision in channel transport phase: {}".format(filename),
e, hostname)


class AuthException(ChannelError):
''' An error raised during execution of an app.
What this exception contains depends entirely on context
Expand Down
1 change: 0 additions & 1 deletion parsl/channels/ssh/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ def pull_file(self, remote_source, local_dir):
- str: Local path to file
Raises:
- FileExists : Name collision at local directory.
- FileCopyException : FileCopy failed.
'''

Expand Down

0 comments on commit 72f275f

Please sign in to comment.