mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
letsencrypt: Don't fail if live dir does not exist
This commit is contained in:
parent
1a17819380
commit
429d26d961
@ -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))]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user