Commit 68983b9e authored by Philipp Hörist's avatar Philipp Hörist

[url_image_preview] Fix missing imports

Fixes #176
parent e141482c
......@@ -23,6 +23,11 @@ from common import helpers
from common import gajim
import logging
if gajim.HAVE_PYCURL:
import pycurl
from cStringIO import StringIO
log = logging.getLogger('gajim.plugin_system.url_image_preview.http_functions')
def get_http_head(account, url):
......@@ -70,8 +75,6 @@ def _get_http_head_proxy(url, proxy):
if not gajim.HAVE_PYCURL:
log.error('PYCURL not installed')
return ('', 0)
import pycurl
from cStringIO import StringIO
headers = ''
try:
......
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