Skip to content

Commit d1d1f38

Browse files
committed
Issue #43 (0.9.21 Raises TypeError instead of DNSError when failing to parse HTTPS records)
1 parent 16e4023 commit d1d1f38

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,9 @@ Changelog:
378378
(Issue #32 - thanks to @sbv-csis)
379379
Add --strip-aaaa option to dnslib.proxy
380380
* 0.9.21 2022-09-19 Minor clean-up / add wheels to distro
381+
* 0.9.22 2022-09027 Issue #43 (0.9.21 Raises TypeError instead of DNSError when failing to parse HTTPS records)
382+
Note that we just fix the exception - there still seems to be a problem with parsing HTTPS records
383+
(Thnaks to @robinlandstrom)
381384

382385
License:
383386
--------

dnslib/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,9 @@
380380
(Issue #32 - thanks to @sbv-csis)
381381
Add --strip-aaaa option to dnslib.proxy
382382
* 0.9.21 2022-09-19 Minor clean-up / add wheels to distro
383+
* 0.9.22 2022-09027 Issue #43 (0.9.21 Raises TypeError instead of DNSError when failing to parse HTTPS records)
384+
Note that we just fix the exception - there still seems to be a problem with parsing HTTPS records
385+
(Thnaks to @robinlandstrom)
383386
384387
License:
385388
--------
@@ -402,7 +405,7 @@
402405

403406
from dnslib.dns import *
404407

405-
version = "0.9.21"
408+
version = "0.9.22"
406409

407410
if __name__ == '__main__':
408411
import doctest,sys,textwrap

dnslib/dns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,7 @@ def parse(cls,buffer,length):
18381838
params.append((k, v))
18391839
return cls(priority, target, params)
18401840
except (BufferError,BimapError) as e:
1841-
raise DNSError("Error unpacking HTTPS: " + str(e) + binascii.hexlify(buffer.data[buffer.offset:]))
1841+
raise DNSError("Error unpacking HTTPS: " + str(e) + str(binascii.hexlify(buffer.data[buffer.offset:])))
18421842

18431843
def pack(self,buffer):
18441844
buffer.pack("!H", self.priority)

0 commit comments

Comments
 (0)