Skip to content

Commit 62f8e06

Browse files
committed
avoid not valid local variable in certain conditions
1 parent 2816e0e commit 62f8e06

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/aleph/sdk/domain.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ def get_required_dns_rules(self, url, target, owner: Optional[str] = None):
9292
target = target.lower()
9393
dns_rules = []
9494

95+
cname_value = None
9596
if target == "ipfs":
9697
cname_value = settings.DNS_IPFS_DOMAIN
9798
elif target == "program":

0 commit comments

Comments
 (0)