Skip to content

Script cannot handle lack of available data from Pi-hole. #4

Description

@crossfireprod

When attempting to setup pi-hole-visualizer on a new install, I learned that the dns_stats.py script errors out if there's not sufficient historical data available:

pi@raspberrypi:~/pi-hole-visualizer $ sudo ./dns_stats.py
Initiating connection with server.
Successful connection with server.
Traceback (most recent call last):
  File "./dns_stats.py", line 182, in <module>
    main()
  File "./dns_stats.py", line 178, in main
    generate_chart(domain_info_hourly, color, args.ripple, args.orientation, args.lowlight)
  File "./dns_stats.py", line 133, in generate_chart
    if info_chart[row][0] > 0:
IndexError: list index out of range

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