Commit fe6ca38b by Shahar Kedar

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

parent 4a5b567f
...@@ -173,7 +173,8 @@ def main(): ...@@ -173,7 +173,8 @@ def main():
else: else:
key_name = dest 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: if bucket_exists is True:
try: try:
key_check = bucket.get_key(key_name) key_check = bucket.get_key(key_name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment