FIX:(#2347) module error when attempting to add storyarc

This commit is contained in:
evilhero 2019-10-04 12:48:02 -04:00
parent 9fb9ab4d73
commit 8d2e0ae1fe
1 changed files with 2 additions and 0 deletions

View File

@ -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))
else:
if r.headers.get('Content-Encoding') == 'gzip':
import gzip
from StringIO import StringIO
buf = StringIO(r.content)
f = gzip.GzipFile(fileobj=buf)