Issue #3079: Initializing key_exists in case the S3 bucket does not exist

pull/3080/head
Shahar Kedar 12 years ago
parent 4a5b567f0c
commit fe6ca38bec

@ -173,7 +173,8 @@ def main():
else:
key_name = dest
# Check to see if the key already exists
# Check to see if the key already exists
key_exists = False
if bucket_exists is True:
try:
key_check = bucket.get_key(key_name)

Loading…
Cancel
Save