mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-13 10:30:16 +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(_):
|
def subcommand_get_status(_):
|
||||||
"""Return a JSON dictionary of currently configured domains."""
|
"""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
|
domains = [domain for domain in domains
|
||||||
if os.path.isdir(os.path.join(LIVE_DIRECTORY, domain))]
|
if os.path.isdir(os.path.join(LIVE_DIRECTORY, domain))]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user