Fix import error
This commit is contained in:
parent
347f0a8aad
commit
40547c4d4b
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue