diff --git a/BackupPC_archiveHost_s3 b/BackupPC_archiveHost_s3 index ccef681..16feeb1 100755 --- a/BackupPC_archiveHost_s3 +++ b/BackupPC_archiveHost_s3 @@ -347,7 +347,7 @@ for i in sorted(glob.glob(fileglob)): key.set_acl('private') key.close() retry_count = max_retries+1 - except (boto.exception.S3ResponseError, socket.error) as e: + except (boto.exception.S3ResponseError, socket.error), e: retry_count += 1 sleeptime = 2**retry_count err = 'Encountered exception %s, retrying in %i seconds (%i/%i)' % (e, sleeptime, retry_count, max_retries)