mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-05-04 23:25:27 -04:00
Mitigate KeyError in urwid
This commit is contained in:
parent
14eb35f7de
commit
939bc37f86
2 changed files with 6 additions and 3 deletions
|
@ -107,6 +107,7 @@ class AnnounceInfo(urwid.WidgetWrap):
|
|||
self.parent.left_pile.contents[0] = (self.parent.announce_stream_display, options)
|
||||
|
||||
def connect(sender):
|
||||
self.app.ui.main_display.request_redraw(extra_delay=0.75)
|
||||
self.parent.browser.retrieve_url(RNS.hexrep(source_hash, delimit=False))
|
||||
show_announce_stream(None)
|
||||
|
||||
|
@ -433,6 +434,7 @@ class KnownNodeInfo(urwid.WidgetWrap):
|
|||
self.parent.left_pile.contents[0] = (self.parent.known_nodes_display, options)
|
||||
|
||||
def connect(sender):
|
||||
self.app.ui.main_display.request_redraw(extra_delay=0.75)
|
||||
self.parent.browser.retrieve_url(RNS.hexrep(source_hash, delimit=False))
|
||||
show_known_nodes(None)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue