Commit ecad5bb8 authored by Shivansh Handa's avatar Shivansh Handa

application: Fix crash on opening help

Music crashes when accessing help with yelp not installed.
Catch exception and log warning if help handler is not installed.

Fixes #220
parent d371c60a
Pipeline #30747 passed with stages
in 6 minutes and 13 seconds
......@@ -31,6 +31,7 @@
# delete this exception statement from your version.
from gettext import gettext as _
import logging
from gi.repository import Gtk, Gio, GLib, Gdk
......@@ -82,7 +83,10 @@ class Application(Gtk.Application):
def _help(self, action, param):
Gtk.show_uri(None, "help:gnome-music", Gdk.CURRENT_TIME)
Gtk.show_uri(None, "help:gnome-music", Gdk.CURRENT_TIME)
except GLib.Error:
logging.warning("Help handler not available.")
def _about(self, action, param):
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