guarded dict access

This commit is contained in:
Lex Berezhny 2019-07-16 21:15:39 -04:00
parent e4aeb66257
commit b89916a3d7

View file

@ -3440,7 +3440,7 @@ class Daemon(metaclass=JSONRPCServerType):
if is_channel_signature_valid: if is_channel_signature_valid:
result['items'] = [ result['items'] = [
c for c in result.get('items', []) if c['is_channel_signature_valid'] c for c in result.get('items', []) if c.get('is_channel_signature_valid', False)
] ]
return result return result