#!/usr/bin/env python2
-# -*- coding: utf-8 -*-
+# -*- coding: utf-8 -*-
# Bacula® - The Network Backup Solution
try:
logging.info("enter download")
proc = Popen(["aws", "s3", "cp",
- os.path.join(cloud_path, volume, part), "-", "--only-show-errors"], stderr=PIPE)
+ os.path.join(cloud_path, volume, part), "-", "--only-show-errors"], stderr=PIPE, universal_newlines=True)
output,err = proc.communicate()
logging.debug("download proc communicate output:{0} , err:{1}".format(output,err))
if err and err.find("An error occurred (InvalidObjectState) when calling the GetObject operation") != -1: