primitivus: a warning is loggued when trying to remove an unknown popup, instead of an error raised
This commit is contained in:
parent
5afdf1c1ca
commit
42b64871a8
1 changed files with 4 additions and 1 deletions
|
|
@ -502,7 +502,10 @@ class PrimitivusApp(QuickApp, InputHistory):
|
|||
if isinstance(self.loop.widget, urwid.Overlay):
|
||||
current_popup = self.loop.widget.top_w
|
||||
if not current_popup == widget:
|
||||
self.notif_bar.removePopUp(widget)
|
||||
try:
|
||||
self.notif_bar.removePopUp(widget)
|
||||
except ValueError:
|
||||
log.warning(u"Trying to remove an unknown widget {}".format(widget))
|
||||
return
|
||||
self.loop.widget = self.main_widget
|
||||
next_popup = self.notif_bar.getNextPopup()
|
||||
|
|
|
|||
Loading…
Reference in a new issue