mirror of https://github.com/evilhero/mylar
FIX:(#2347) module error when attempting to add storyarc
This commit is contained in:
parent
9fb9ab4d73
commit
8d2e0ae1fe
|
@ -522,6 +522,8 @@ class WebInterface(object):
|
||||||
logger.warn('Unable to download image from CV URL link: %s [Status Code returned: %s]' % (imageurl, r.status_code))
|
logger.warn('Unable to download image from CV URL link: %s [Status Code returned: %s]' % (imageurl, r.status_code))
|
||||||
else:
|
else:
|
||||||
if r.headers.get('Content-Encoding') == 'gzip':
|
if r.headers.get('Content-Encoding') == 'gzip':
|
||||||
|
import gzip
|
||||||
|
from StringIO import StringIO
|
||||||
buf = StringIO(r.content)
|
buf = StringIO(r.content)
|
||||||
f = gzip.GzipFile(fileobj=buf)
|
f = gzip.GzipFile(fileobj=buf)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue