fix: don't catch S3 upload error prematurely

This commit is contained in:
barredterra 2024-09-23 14:59:24 +02:00
parent a04aba0408
commit 8d52eeafe0

View file

@ -187,10 +187,5 @@ def backup_to_s3():
def upload_file_to_s3(filename, folder, conn, bucket):
destpath = os.path.join(folder, os.path.basename(filename))
try:
print("Uploading file:", filename)
conn.upload_file(filename, bucket, destpath) # Requires PutObject permission
except Exception:
frappe.log_error()
notify()
print("Uploading file:", filename)
conn.upload_file(filename, bucket, destpath) # Requires PutObject permission