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

Remove FileExists channel exception that is unused #3651

Merged
merged 2 commits into from
Oct 24, 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
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
Loading