updates for python2 and try to slow down the upload loop to make DO happy

This commit is contained in:
thelamer 2019-06-03 10:38:44 -07:00
parent f96d9b25a2
commit 9716de3765

View File

@ -15,6 +15,8 @@ from selenium.common.exceptions import ErrorInResponseException,TimeoutException
from jinja2 import Template
client = docker.from_env()
session = boto3.session.Session()
reload(sys)
sys.setdefaultencoding('utf8')
# Global Vars
global report_status
@ -314,6 +316,7 @@ def report_upload():
core_fail('Upload Error ' + str(error))
# Loop for all others
for filename in os.listdir(outdir):
time.sleep(0.5)
# Set content types for files
if filename.lower().endswith('.svg'):
CT = 'image/svg+xml'