This is just a small change so that if dig returns a nonzero exit code, then we don't immediately return None as the IP.
Reason and / or context
For example on my home network I block outgoing port 53:
As you see in this case archey fails to get the IP with the default settings and doesn't fall back to the configured HTTP URL :frowning_face:
How has this been tested ?
It now gets my IP and passes the additional test case I added
Types of changes :
[X] Bug fix (non-breaking change which fixes an issue)
Description
This is just a small change so that if
dig
returns a nonzero exit code, then we don't immediately returnNone
as the IP.Reason and / or context
For example on my home network I block outgoing port 53: As you see in this case archey fails to get the IP with the default settings and doesn't fall back to the configured HTTP URL :frowning_face:
How has this been tested ?
It now gets my IP and passes the additional test case I added
Types of changes :
Checklist :
[IF NEEDED] I have updated the README.md file accordingly ;[IF BREAKING] This pull request targets next Archey version branch ;