Skip to content

Commit 7f6b981

Browse files
authored
fix(RootDomain): Implement cached property correctly (frappe#185)
1 parent 53731dd commit 7f6b981

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

press/press/doctype/root_domain/root_domain.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ def obtain_root_domain_tls_certificate(self):
4040
except Exception:
4141
log_error("Root Domain TLS Certificate Exception")
4242

43+
@property
4344
def boto3_client(self):
44-
if not self._boto3_client:
45+
if not hasattr(self, "_boto3_client"):
4546
self._boto3_client = boto3.client(
4647
"route53",
4748
aws_access_key_id=self.aws_access_key_id,

0 commit comments

Comments
 (0)