From 6803a499384bab62d03b037dcd2332a962afc553 Mon Sep 17 00:00:00 2001 From: Cyrille L Date: Mon, 10 Apr 2023 02:28:35 +0200 Subject: [PATCH] fix on domain status (unused) --- src/var/lib/tyto/program/dom.py | 3 +-- src/var/lib/tyto/program/status.py | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/var/lib/tyto/program/dom.py b/src/var/lib/tyto/program/dom.py index 97f7a91..0e7f82c 100644 --- a/src/var/lib/tyto/program/dom.py +++ b/src/var/lib/tyto/program/dom.py @@ -128,6 +128,7 @@ create_files = \ 'footer_about_f' ) +wip_html_mods = () err_val = (()) # Make a list from values error file_unu = (()) # Make a list for files to check file_mod = (()) # male a list for modules files to create @@ -203,7 +204,6 @@ if not hole: #==============================================# # When an active and complete domain is needed # #----------------------------------------------# - wip_html_mods = () if exists and not incomplete and not corrupt: wip_html_mods = \ ( @@ -268,5 +268,4 @@ if not hole: #------------------------------------# def valid(): if incomplete: sys.exit(41) - #elif corrupt: sys.exit(41) elif not active: sys.exit(42) diff --git a/src/var/lib/tyto/program/status.py b/src/var/lib/tyto/program/status.py index 93feadb..35cf7f9 100644 --- a/src/var/lib/tyto/program/status.py +++ b/src/var/lib/tyto/program/status.py @@ -35,8 +35,9 @@ import args, dom, logs, tyto, form -print("") def domain(): + if not dom.exists: logs.out("10", '', True) + print("") if dom.hole: logs.out("13", '', True) elif dom.corrupt: logs.out("39", dom.shortname, True) elif dom.incomplete: logs.out("41", dom.shortname, False)