Commit da1f2867 authored by Philipp Hörist's avatar Philipp Hörist

[gotr] Fix importing python-otr Fixes #187

parent 37bad708
......@@ -76,10 +76,9 @@ from message_control import TYPE_CHAT, MessageControl
from plugins.helpers import log_calls, log
from plugins.plugin import GajimPluginException
sys.path.insert(0, os.path.dirname(__file__))
import ui
sys.path.insert(0, os.path.dirname(ui.__file__))
from HTMLParser import HTMLParser
from htmlentitydefs import name2codepoint
name2codepoint['apos'] = 0x0027
......@@ -247,8 +246,9 @@ try:
except IOError, e:
log.exception('IOError occurred when loading fpr file for %s',
except ImportError:
except ImportError as e:
HAS_POTR = False
def otr_dialog_destroy(widget, *args, **kwargs):
......@@ -23,12 +23,11 @@ import gtk
from common import gajim
from plugins.gui import GajimPluginConfigDialog
import otrmodule
import potr
import potr.proto
except ImportError:
except ImportError as e:
class OtrPluginConfigDialog(GajimPluginConfigDialog):
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