Skip to content

Commit 3203888

Browse files
authored
Remove ChannelError.__repr__ in favor of __str__ (#3098)
See PR #1966 for more context
1 parent 8803b28 commit 3203888

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

parsl/channels/errors.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ def __init__(self, reason: str, e: Exception, hostname: str) -> None:
1414
self.e = e
1515
self.hostname = hostname
1616

17-
def __repr__(self) -> str:
18-
return "Hostname:{0}, Reason:{1}".format(self.hostname, self.reason)
19-
2017
def __str__(self) -> str:
21-
return self.__repr__()
18+
return "Hostname:{0}, Reason:{1}".format(self.hostname, self.reason)
2219

2320

2421
class BadHostKeyException(ChannelError):

0 commit comments

Comments
 (0)