mirror of
https://github.com/aljazceru/plugins.git
synced 2026-01-09 08:14:20 +01:00
Fix handling of ignored messages in historian.py
Fixes a bug where gossip messages that are ignored by the historian plugin will trigger an exception being printed.
This commit is contained in:
committed by
Christian Decker
parent
c277f9e10b
commit
63232c0fb2
@@ -161,10 +161,13 @@ class Flusher(Thread):
|
||||
|
||||
elif isinstance(msg, gossipd.NodeAnnouncement):
|
||||
cls = NodeAnnouncement
|
||||
|
||||
else:
|
||||
return;
|
||||
|
||||
self.session.merge(cls.from_gossip(msg, raw))
|
||||
except Exception as e:
|
||||
print("Exception parsing gossip message:", e)
|
||||
logging.warn("Exception parsing gossip message:", e)
|
||||
|
||||
|
||||
@plugin.init()
|
||||
|
||||
Reference in New Issue
Block a user