Skip to content

KeyError #1

Description

@nbtippetts

Hello just want to say thank you for this library as it has saved me a lot of headaches and you did a very good job.

On line 50 in main.py in the colors dict it throws a key error exception when checking for wifi connection and not finding one. I was able to resolve the issue by adding "FAILED": '\033[91m', to the colors dict.
Update dict.
colors={
"INFO": '\033[94m',
"OK": '\033[92m',
"FAIL": '\033[91m',
"FAILED": '\033[91m',
"END": '\033[0m'
}
Hopefully, you are available to add the fix.
If you would like me to submit a pull request I can do that as well.
Thanks, Noah

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions