Temporary workaround for storage download.
* This fies an error if we request this not from flask handler,
though we still won't be able to receive downloaded file.
@@ -90,6 +90,7 @@ class S3(object):
with open(path, 'w') as f:
f.write(result['Body'].read())
+ if 'g' in globals():
@after_this_request
def _remove_file(response):
if os.path.exists(path):
