sibalzer/impfbot

Validation code fails with --alert argument only

Closed this issue · 0 comments

I updated to v3.0 and have troubles running the validation script. I am using a docker container executing docker exec impfbot python src/validate_config.py -a

and get the following output:

2021-06-08 22:04:19 [INFO] validate config.ini
2021-06-08 22:04:19 [INFO] [WEBBROWSER] 'enable' is set to 'false'. Disable [WEBBROWSER]
2021-06-08 22:04:19 [INFO] [APPRISE] 'enable' is set to 'false'. Disable [APPRISE]
Traceback (most recent call last):
File "//src/validate_config.py", line 33, in <module>
2021-06-08 22:04:19 [INFO] settings validation finished
if result in YES or arg['alert']:
NameError: name 'result' is not defined

If the alert argument is used, the code does not ask for input and the result variable is not defined.