[gedit-latex] Don't import gobject



commit 5d7c5420831c4120f03cf605c2a959d540663b83
Author: John Stowers <john stowers gmail com>
Date:   Sun Sep 11 13:07:15 2011 +1200

    Don't import gobject

 latex/latex/views.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/latex/latex/views.py b/latex/latex/views.py
index 70997b4..7fe00cd 100644
--- a/latex/latex/views.py
+++ b/latex/latex/views.py
@@ -28,7 +28,6 @@ import logging
 import xml.etree.ElementTree as ElementTree
 
 from gi.repository import Gtk, GdkPixbuf
-from gobject import GError
 
 from ..preferences import Preferences
 from ..base import PanelView
@@ -119,7 +118,7 @@ class LaTeXSymbolMapView(PanelView):
         for symbol in group.symbols:
             try:
                 model.append([GdkPixbuf.Pixbuf.new_from_file(symbol.icon), str(symbol.template), symbol.template])
-            except GError, s:
+            except:
                 LOG.error("Could not add symbol group %s to model" % symbol, exc_info=True)
 
         view = Gtk.IconView(model=model)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]