fixup! fixup! fixup! attachment_s3: Add set ACL function

This commit is contained in:
Akim Juillerat
2020-05-28 15:58:21 +02:00
parent 985fa50158
commit f51efc87f3
+1 -1
View File
@@ -110,7 +110,7 @@ class IrAttachment(models.Model):
def _store_file_set_acl(self, acl):
self.ensure_one()
fname = self.store_fname
if fname.startswith('s3://'):
if fname and fname.startswith('s3://'):
s3uri = S3Uri(fname)
try:
bucket = self._get_s3_bucket(name=s3uri.bucket())