spacing after comma fix, use Exception init in InvalidStreamInfoError

This commit is contained in:
kkurokawa 2016-11-01 16:35:44 -04:00
parent 39b47bc569
commit 7dd5e7ceeb
3 changed files with 5 additions and 6 deletions

View file

@ -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