mirror of
https://git.srhtnin.garden/sarah/SaraSortd.git
synced 2026-10-14 02:38:12 +02:00
Fixed ConfCheck so that it doesn't raise nonexistent errors.
This commit is contained in:
1 parent
8abe270d93
commit
ef5b40ffef
2 files changed
+19
-12
No files matched your search
+18
-11
@@ -111,26 +111,33 @@ def LogWrite(Text):
|
||||
|
||||
|
||||
def ConfCheck():
|
||||
for Item in ConfVars:
|
||||
if (Item == None or Item == "Unset"):
|
||||
TextOutput = Parse(ConfLog["Unset"], Item)
|
||||
for Parameter, Value in ConfVars.items():
|
||||
if (Value == None or Value == "Unset"):
|
||||
TextOutput = Parse(ConfLog["Unset"], Parameter)
|
||||
LogWrite(TextOutput)
|
||||
Speak(TextOutput)
|
||||
Error()
|
||||
|
||||
for Item in ConfDirs:
|
||||
if (Item == None or Item == "Unset"):
|
||||
TextOutput = Parse(ConfLog["Unset"], Item)
|
||||
for Parameter, Value in ConfDirs.items():
|
||||
if (Value == None or Value == "Unset"):
|
||||
TextOutput = Parse(ConfLog["Unset"], Parameter)
|
||||
LogWrite(TextOutput)
|
||||
Speak(TextOutput)
|
||||
Error()
|
||||
|
||||
for Parameter, Value in ConfNames.items():
|
||||
if (Value == None or Value == "Unset"):
|
||||
TextOutput = Parse(ConfLog["Unset"], Parameter)
|
||||
LogWrite(TextOutput)
|
||||
Speak(TextOutput)
|
||||
Error()
|
||||
|
||||
for Item in ConfLog:
|
||||
if (Item == None or Item == "Unset"):
|
||||
TextOutput = Parse(ConfLog["Unset"], Item)
|
||||
for Parameter, Value in ConfLog.items():
|
||||
if (Value == None or Value == "Unset"):
|
||||
TextOutput = Parse(ConfLog["Unset"], Parameter)
|
||||
LogWrite(TextOutput)
|
||||
Speak(TextOutput)
|
||||
Error()
|
||||
Error()
|
||||
|
||||
|
||||
def Init():
|
||||
@@ -144,7 +151,7 @@ def Init():
|
||||
TextOutput = Parse(ConfLog["Start"])
|
||||
LogWrite(TextOutput)
|
||||
Speak(TextOutput)
|
||||
|
||||
|
||||
Main()
|
||||
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user