mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-12-17 06:44:21 +01:00
Added error handling to micron parser mouse event translator. Fixes #32.
This commit is contained in:
@@ -751,6 +751,7 @@ class LinkableText(urwid.Text):
|
||||
return x, y
|
||||
|
||||
def mouse_event(self, size, event, button, x, y, focus):
|
||||
try:
|
||||
if button != 1 or not is_mouse_press(event):
|
||||
return False
|
||||
else:
|
||||
@@ -789,3 +790,6 @@ class LinkableText(urwid.Text):
|
||||
self._emit("change")
|
||||
|
||||
return True
|
||||
|
||||
except Exception as e:
|
||||
return False
|
||||
Reference in New Issue
Block a user