From b7bea608f6dc268cc2eb6e2aeeca12e6f458ae88 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 29 Sep 2022 00:02:17 +0200 Subject: [PATCH] Fix edge case where var would get undefined.. --- src/tools.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tools.py b/src/tools.py index e739c4504..1460dac33 100644 --- a/src/tools.py +++ b/src/tools.py @@ -238,6 +238,9 @@ def tools_postinstall( # If this is a nohost.me/noho.st, actually check for availability if not ignore_dyndns and is_yunohost_dyndns_domain(domain): + + available = None + # Check if the domain is available... try: available = _dyndns_available(domain)