From 59ca3d3d161ef176caf50d096b9be88a55020c3d Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Sat, 22 Jun 2019 23:01:26 -0400 Subject: [PATCH] take_over_height fix --- lbry/lbry/schema/result.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lbry/lbry/schema/result.py b/lbry/lbry/schema/result.py index 22deaab55..c91392b13 100644 --- a/lbry/lbry/schema/result.py +++ b/lbry/lbry/schema/result.py @@ -100,7 +100,8 @@ class Outputs: if txo['canonical_url'] is not None: txo_message.claim.canonical_url = txo['canonical_url'] txo_message.claim.is_controlling = bool(txo['is_controlling']) - txo_message.claim.take_over_height = txo['last_take_over_height'] + if txo['last_take_over_height'] is not None: + txo_message.claim.take_over_height = txo['last_take_over_height'] txo_message.claim.creation_height = txo['creation_height'] txo_message.claim.activation_height = txo['activation_height'] txo_message.claim.expiration_height = txo['expiration_height']