mirror of
https://codeberg.org/privacy1st/netcup-dns
synced 2024-12-22 23:36:04 +01:00
minor
This commit is contained in:
parent
27492ba1ef
commit
74b7747a94
@ -25,9 +25,9 @@ def main():
|
||||
|
||||
cfg_files = [file for file in cfg_dir.iterdir() if file.name.endswith('.json') and file.is_file()]
|
||||
for cfg_file in cfg_files:
|
||||
cfg = json.loads(cfg_file.read_text())
|
||||
cfg: dict = json.loads(cfg_file.read_text())
|
||||
|
||||
if len(cfg) == 0 or cfg['disabled'] is True:
|
||||
if len(cfg) == 0 or ('disabled' in cfg and cfg['disabled'] is True):
|
||||
# Skip empty or disabled configuration file.
|
||||
continue
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user