spacing after comma fix, use Exception init in InvalidStreamInfoError
This commit is contained in:
parent
39b47bc569
commit
7dd5e7ceeb
3 changed files with 5 additions and 6 deletions
|
@ -54,12 +54,11 @@ class InvalidStreamDescriptorError(Exception):
|
|||
|
||||
class InvalidStreamInfoError(Exception):
|
||||
def __init__(self, name, stream_info):
|
||||
msg = '{} has claim with invalid stream info: {}'.format(name, stream_info)
|
||||
Exception.__init__(self, msg)
|
||||
self.name = name
|
||||
self.stream_info = stream_info
|
||||
|
||||
def __str__(self):
|
||||
return '{} has claim with invalid stream info: {}'.format(self.name,self.stream_info)
|
||||
|
||||
|
||||
class MisbehavingPeerError(Exception):
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue