summaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
authorPierce Lopez <pierce.lopez@gmail.com>2019-06-19 01:43:24 -0400
committerJeff Forcier <jeff@bitprophet.org>2019-06-21 14:22:06 -0400
commitdb2adf7f0ecafd989f91bc00286ba2288eefc9aa (patch)
treea3b13dcd2d4af8f7426e7e166dd75f80d7bd8174 /.travis.yml
parent183a7bd2edffacbab5e86ca5c882b37d1529a71a (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 '.travis.yml')
0 files changed, 0 insertions, 0 deletions