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

fixed None Type is not iterable errors when type is list | None #310

Merged
merged 3 commits into from
Sep 13, 2024

Conversation

mr-pmillz
Copy link

This resolves panics that occur from TypeError's when attempting to use the .extend method on None type objects.

[*] crt: Performing Crt.sh Search Enumeration against example.com...
[-] Bad http status from crt.sh: "503"
Traceback (most recent call last):
  File "/root/test/dnsrecon/bin/dnsrecon", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/root/test/dnsrecon/lib/python3.11/site-packages/dnsrecon/cli.py", line 1956, in main
    returned_records.extend(crt_enum_records)
TypeError: 'NoneType' object is not iterable

@L1ghtn1ng
Copy link
Collaborator

Can you make sure your quotes are single ones please to pass the formatter ci check

@mr-pmillz
Copy link
Author

Can you make sure your quotes are single ones please to pass the formatter ci check

Whoops, yep no prob 👍

@L1ghtn1ng L1ghtn1ng merged commit 2c23068 into darkoperator:master Sep 13, 2024
5 of 7 checks passed
@L1ghtn1ng
Copy link
Collaborator

Thanks for this

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.

2 participants