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

Fix YAML loading -- newer versions of pyYAML either require a Loader arg or use of safe_load() #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

enigma0Z
Copy link

Fix YAML loading

Traceback (most recent call last):
  File "/usr/local/bin/dns-blackhole", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  File "/usr/local/lib/python3.13/site-packages/dnsblackhole/cli.py", line 4, in main
    dnsblackhole.main()
    ~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/dnsblackhole/__init__.py", line 326, in main
    config = load_config()
  File "/usr/local/lib/python3.13/site-packages/dnsblackhole/__init__.py", line 49, in load_config
    yaml_config = yaml.load(f)
TypeError: load() missing 1 required positional argument: 'Loader'

Fix YAML loading

```
Traceback (most recent call last):
  File "/usr/local/bin/dns-blackhole", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  File "/usr/local/lib/python3.13/site-packages/dnsblackhole/cli.py", line 4, in main
    dnsblackhole.main()
    ~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/dnsblackhole/__init__.py", line 326, in main
    config = load_config()
  File "/usr/local/lib/python3.13/site-packages/dnsblackhole/__init__.py", line 49, in load_config
    yaml_config = yaml.load(f)
TypeError: load() missing 1 required positional argument: 'Loader'
```
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

Successfully merging this pull request may close these issues.

1 participant