diff pytouhou/menu.py @ 570:f0252cf111d8

Don’t traceback when GTK+ isn’t available.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 10 Jul 2014 13:53:46 +0200
parents e7a4731a278b
children 7f113f15300b
line wrap: on
line diff
--- a/pytouhou/menu.py
+++ b/pytouhou/menu.py
@@ -15,11 +15,7 @@
 from pytouhou.utils.helpers import get_logger
 logger = get_logger(__name__)
 
-try:
-    from gi.repository import Gtk, Gdk
-except ImportError:
-    logger.error('GTK+ unavailable, disabling the GUI menu.')
-    raise
+from gi.repository import Gtk, Gdk
 
 import sys
 import re