forked from LBRYCommunity/lbry-sdk
move none_check after fee update since that can be None
This commit is contained in:
parent
8a49ad4586
commit
51af43d492
1 changed files with 2 additions and 1 deletions
|
@ -215,7 +215,6 @@ class Stream(BaseClaim):
|
|||
return claim
|
||||
|
||||
def update(self, file_path=None, height=None, width=None, duration=None, **kwargs):
|
||||
self.none_check(kwargs)
|
||||
|
||||
if kwargs.pop('clear_fee', False):
|
||||
self.message.ClearField('fee')
|
||||
|
@ -226,6 +225,8 @@ class Stream(BaseClaim):
|
|||
kwargs.pop('fee_amount', None)
|
||||
)
|
||||
|
||||
self.none_check(kwargs)
|
||||
|
||||
if 'sd_hash' in kwargs:
|
||||
self.source.sd_hash = kwargs.pop('sd_hash')
|
||||
elif 'bt_infohash' in kwargs:
|
||||
|
|
Loading…
Reference in a new issue