mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
letsencrypt: Don't fail if live dir does not exist
This commit is contained in:
1 parent
1a17819380
commit
429d26d961
1 file changed
+5
-1
+5
-1
@@ -99,7 +99,11 @@ def get_certficate_expiry(domain):
|
||||
|
||||
def subcommand_get_status(_):
|
||||
"""Return a JSON dictionary of currently configured domains."""
|
||||
domains = os.listdir(LIVE_DIRECTORY)
|
||||
try:
|
||||
domains = os.listdir(LIVE_DIRECTORY)
|
||||
except OSError:
|
||||
domains = []
|
||||
|
||||
domains = [domain for domain in domains
|
||||
if os.path.isdir(os.path.join(LIVE_DIRECTORY, domain))]
|
||||
|
||||
|
||||
Reference in new issue
Block a user