Fixed missing error handling in URL dialog

This commit is contained in:
Mark Qvist 2022-07-04 17:37:13 +02:00
parent 726ee8873e
commit d1c66aa7cd

View File

@ -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(