From 8d2e0ae1fe9086bd9511cf589673c74bfb88e91a Mon Sep 17 00:00:00 2001 From: evilhero Date: Fri, 4 Oct 2019 12:48:02 -0400 Subject: [PATCH] FIX:(#2347) module error when attempting to add storyarc --- mylar/webserve.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mylar/webserve.py b/mylar/webserve.py index ac9a0ec5..74cf4cfa 100644 --- a/mylar/webserve.py +++ b/mylar/webserve.py @@ -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)