tw.store: minor bugfix

This commit is contained in:
The MMGen Project 2025-05-26 17:20:34 +00:00
commit 9fe344cc70
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
15.1.dev40
15.1.dev41

View file

@ -49,7 +49,7 @@ class TwCtlWithStore(TwCtl):
elif label.mmid:
ymsg(f'Warning: MMGen ID {label.mmid!r} was missing in tracking wallet!')
r[addr]['mmid'] = label.mmid
if not r[addr]['comment']:
if not 'comment' in r[addr]:
ymsg(f'Warning: Label for MMGen ID {label.mmid!r} was missing in tracking wallet!')
r[addr]['comment'] = label.comment
elif label.comment: # overwrite existing comment only if new comment not empty