Commit e6377de9 authored by Jean Felder's avatar Jean Felder

starhandlerwidget: Catch the correct error in on_star_toggled

The get_iter method of a GtkTreeModel raises a ValueError if the path
does not exist.

This fix prevents the crash mentioned in #264 but it does not solve
the underlying issue.

Related: #264
parent a9715abf
Pipeline #85897 passed with stages
in 14 minutes and 34 seconds
......@@ -139,7 +139,7 @@ class StarHandlerWidget(object):
"""Called if a star is clicked"""
_iter = self._parent.model.get_iter(path)
except TypeError:
except ValueError:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment