Skip to content

Commit d2f7d0b

Browse files
committed
Fix issue.
Indeed, before this patch, because of a my attempt to distribute the nameservers in the DNSLookup outputs, I created an issue which put all INVALID to ACTIVE.
1 parent 744d9c4 commit d2f7d0b

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

PyFunceble/abstracts/package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class Package:
7171
Sets the package name.
7272
"""
7373

74-
VERSION = "2.42.0.dev (Green Galago: Skitterbug)"
74+
VERSION = "2.43.0.dev (Green Galago: Skitterbug)"
7575
"""
7676
Sets the package version.
7777
"""

PyFunceble/lookup/dns.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ def __request_not_ip(self, subject, complete=False, tcp=None): # pragma: no cov
564564

565565
# We delete it.
566566
del result["addr_info"]
567-
else:
567+
elif result:
568568
result["nameservers"] = self.resolver.nameservers
569569

570570
PyFunceble.LOGGER.debug(
@@ -601,7 +601,7 @@ def __request_ip(self, subject, tcp=None): # pragma: no cover
601601
del result["PTR"]
602602

603603
PyFunceble.LOGGER.error(f"PTR record for {repr(subject)} not found.")
604-
else:
604+
elif result["PTR"]:
605605
result["nameservers"] = self.resolver.nameservers
606606

607607
if not result:

version.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
current_version: '2.42.0.dev (Green Galago: Skitterbug)'
1+
current_version: '2.43.0.dev (Green Galago: Skitterbug)'
22
deprecated:
33
- 0.0.0
44
- 0.0.1
@@ -171,6 +171,7 @@ deprecated:
171171
- 2.39.0
172172
- 2.40.0
173173
- 2.41.0
174+
- 2.42.0
174175
force_update:
175176
minimal_version:
176177
- 0.0.0

0 commit comments

Comments
 (0)