diff --git a/gordon/resources/lambdas.py b/gordon/resources/lambdas.py index ec8b50f..691e853 100644 --- a/gordon/resources/lambdas.py +++ b/gordon/resources/lambdas.py @@ -472,6 +472,9 @@ def get_zip_file(self): for filename in files: source = os.path.join(destination, basedir, filename) relative_destination = os.path.join(relative, filename) + if six.PY2: + source = source.decode('utf-8', errors='strict') + relative_destination = relative_destination.decode('utf-8', errors='strict') zf.write(source, relative_destination) tmp.seek(0)