mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-25 08:43:36 +05:00
fix: skip if a symlink is broken
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
@@ -211,6 +211,9 @@ def read_ports_from_nginx_configs() -> List[int]:
|
||||
|
||||
port_list = []
|
||||
for config in NGINX_SITES_ENABLED.iterdir():
|
||||
if not config.is_file():
|
||||
continue
|
||||
|
||||
with open(config, "r") as cfg:
|
||||
lines = cfg.readlines()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user