move none_check after fee update since that can be None

This commit is contained in:
Lex Berezhny 2019-12-13 12:05:36 -05:00
parent 8a49ad4586
commit 51af43d492

View file

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