Fix import error

This commit is contained in:
Philipp Hörist 2017-10-27 10:35:06 +02:00
parent 347f0a8aad
commit 40547c4d4b
1 changed files with 1 additions and 3 deletions

View File

@ -21,15 +21,13 @@ from gi.repository import GObject
from gi.repository import Gtk
from gi.repository import GLib
import gi
gi.require_version('GtkSpell', '3.0')
try:
gi.require_version('GtkSpell', '3.0')
from gi.repository import GtkSpell
HAS_GTK_SPELL = True
except ImportError:
HAS_GTK_SPELL = False
from gajim.common import app
def ensure_attached(func):
def f(self, *args, **kwargs):