mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
pyln.proto.message: don't leave 'None' in dict for missing fields.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
431463b57a
commit
2309a7a561
@ -592,6 +592,7 @@ Returns None on EOF
|
||||
if fields[f.name] is None:
|
||||
# optional fields are OK to be missing at end!
|
||||
if f.option is not None:
|
||||
del fields[f.name]
|
||||
break
|
||||
raise ValueError('{}: truncated at field {}'
|
||||
.format(mtype, f.name))
|
||||
|
Loading…
Reference in New Issue
Block a user