fix: don't catch S3 upload error prematurely
This commit is contained in:
parent
a04aba0408
commit
8d52eeafe0
1 changed files with 2 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue