Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting errors running the script on Pi-hole 5.1.2 #7

Open
dazpp opened this issue Sep 25, 2020 · 0 comments
Open

Getting errors running the script on Pi-hole 5.1.2 #7

dazpp opened this issue Sep 25, 2020 · 0 comments

Comments

@dazpp
Copy link

dazpp commented Sep 25, 2020

Hi

Tried this script with the setup below:
Pi-hole v5.1.2 Web Interface v5.1.1 FTL v5.2

I just get these errors when running it and I have configured the ip and passwords for each of the pi-holes.

root@pihole1:~/pihole-sync# python3 sync.py
Traceback (most recent call last):
File "sync.py", line 53, in get_list
return self._list_cache[list_type]
KeyError: <ListType.WHITELIST: 1>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "sync.py", line 185, in
sync_lists(hosts)
File "sync.py", line 176, in sync_lists
sync_count = _sync_list(hosts, list_type)
File "sync.py", line 144, in _sync_list
lst = host.get_list(list_type)
File "sync.py", line 65, in get_list
self._list_cache[ListType.WHITELIST] = results[0]
KeyError: 0

Any idea on how to fix this?

Regards.
Daniel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant