mirror of
https://github.com/markqvist/NomadNet.git
synced 2024-10-01 01:26:07 -04:00
Fixed missing error handling in URL dialog
This commit is contained in:
parent
726ee8873e
commit
d1c66aa7cd
@ -486,7 +486,12 @@ class Browser:
|
||||
self.close_dialogs()
|
||||
|
||||
def confirmed(sender):
|
||||
self.retrieve_url(e_url.get_edit_text())
|
||||
try:
|
||||
self.retrieve_url(e_url.get_edit_text())
|
||||
except Exception as e:
|
||||
self.browser_footer = urwid.Text("Could not open link: "+str(e))
|
||||
self.frame.contents["footer"] = (self.browser_footer, self.frame.options())
|
||||
|
||||
self.close_dialogs()
|
||||
|
||||
dialog = UrlDialogLineBox(
|
||||
|
Loading…
Reference in New Issue
Block a user