diff options
author | Pierce Lopez <pierce.lopez@gmail.com> | 2019-06-19 01:43:24 -0400 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2019-06-21 14:22:06 -0400 |
commit | db2adf7f0ecafd989f91bc00286ba2288eefc9aa (patch) | |
tree | a3b13dcd2d4af8f7426e7e166dd75f80d7bd8174 /.gitignore | |
parent | 183a7bd2edffacbab5e86ca5c882b37d1529a71a (diff) |
clean up SSHException subclass args and string methods
Setting "self.args" is equivalent to calling the parent class
__init__() method with those args, and also overrides the only
thing that parent class __init__() method did. It is confused.
What is actually desired is to override the __str__() method with
a custom formatted exception message. The default for Exception
with zero args is blank, with one arg is the str of that arg,
with multiple args is just the repr of the args tuple.
(That never includes the class name. So, we want custom str.)
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions