Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Validation code fails with --alert argument only #90

Closed
DennisWilken opened this issue Jun 8, 2021 · 0 comments · Fixed by #102
Closed

Validation code fails with --alert argument only #90

DennisWilken opened this issue Jun 8, 2021 · 0 comments · Fixed by #102
Labels
bug Something isn't working

Comments

@DennisWilken
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants