Try ERPNext Buy Support Partners Foundation

S3 backup to DO Spaces - email warning but backups correctly copied

I configured the S3 backup using Digital Ocean Spaces. The backup process is working correclty but I receive a failed backup warning via email at every back up. It is just annoying since the backups have been copied.

I understand the integration have been created for S3 but do you have any suggestion how to solve the failed backup warning?

Backup Upload Failed!
Oops, your automated backup to Amazon S3 failed.

Error message: Traceback (most recent call last): File "/home/cyberd3vil/frappe-bench/apps/frappe/frappe/integrations/doctype/s3_backup_settings/", line 84, in take_backups_s3 backup_to_s3() File "/home/cyberd3vil/frappe-bench/apps/frappe/frappe/integrations/doctype/s3_backup_settings/", line 141, in backup_to_s3 delete_old_backups(doc.backup_limit, bucket) File "/home/cyberd3vil/frappe-bench/apps/frappe/frappe/integrations/doctype/s3_backup_settings/", line 169, in delete_old_backups for obj in objects.get('CommonPrefixes'): TypeError: 'NoneType' object is not iterable
erpnext 12.13.0
frappe 12.11.0