From 87f5d1bd4aaf9e59bd17af3e1b385661d1ea803c Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Thu, 31 Jan 2019 20:21:02 -0500 Subject: [PATCH] fix updating claim with existing stream --- lbrynet/extras/daemon/Daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/extras/daemon/Daemon.py b/lbrynet/extras/daemon/Daemon.py index 217dfca0a..76732566b 100644 --- a/lbrynet/extras/daemon/Daemon.py +++ b/lbrynet/extras/daemon/Daemon.py @@ -2051,7 +2051,7 @@ class Daemon(metaclass=JSONRPCServerType): claim_dict['stream']['source']['contentType'] = guess_media_type(file_path) claim_dict['stream']['source']['version'] = "_0_0_1" # need current version here else: - if not ('source' not in claim_dict['stream'] and existing_claims): + if 'source' not in claim_dict['stream'] and not existing_claims: raise Exception("no previous stream to update") claim_dict['stream']['source'] = existing_claims[-1].claim_dict['stream']['source'] stream_hash = await self.storage.get_stream_hash_for_sd_hash(claim_dict['stream']['source']['source'])