mirror of
https://github.com/LBRYFoundation/lbry-sdk.git
synced 2025-09-04 04:45:09 +00:00
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):
|
class InvalidStreamInfoError(Exception):
|
||||||
def __init__(self, name, stream_info):
|
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.name = name
|
||||||
self.stream_info = stream_info
|
self.stream_info = stream_info
|
||||||
|
|
||||||
def __str__(self):
|
|
||||||
return '{} has claim with invalid stream info: {}'.format(self.name,self.stream_info)
|
|
||||||
|
|
||||||
|
|
||||||
class MisbehavingPeerError(Exception):
|
class MisbehavingPeerError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Reference in a new issue