mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-07-22 11:59:33 +00:00
ikiwiki: Don't error out when listing before setup
- After a ikiwiki module is installed but not yet enabled, visting the 'manage' page throws an error. Fix this.
This commit is contained in:
parent
9b674292c8
commit
cc97304925
@ -100,8 +100,11 @@ def subcommand_disable(_):
|
||||
|
||||
def subcommand_get_sites(_):
|
||||
"""Get wikis and blogs."""
|
||||
sites = os.listdir(SITE_PATH)
|
||||
print('\n'.join(sites))
|
||||
try:
|
||||
sites = os.listdir(SITE_PATH)
|
||||
print('\n'.join(sites))
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
|
||||
|
||||
def subcommand_create_wiki(arguments):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user