Fix edge case where var would get undefined..

This commit is contained in:
Alexandre Aubin 2022-09-29 00:02:17 +02:00
parent 68e2d01a85
commit b7bea608f6

View file

@ -238,6 +238,9 @@ def tools_postinstall(
# If this is a nohost.me/noho.st, actually check for availability # If this is a nohost.me/noho.st, actually check for availability
if not ignore_dyndns and is_yunohost_dyndns_domain(domain): if not ignore_dyndns and is_yunohost_dyndns_domain(domain):
available = None
# Check if the domain is available... # Check if the domain is available...
try: try:
available = _dyndns_available(domain) available = _dyndns_available(domain)