Skip to content

Commit 225a584

Browse files
committed
Fix mapping to rrtype.
1 parent a60947d commit 225a584

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pypdns/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def __init_typed_record(self) -> TypedPDNSRecord:
8080
# Accordingly to the specs, the type can be a string OR an int. we normalize to str
8181
rrtype: str = RdataType(self._raw_record['rrtype']).name
8282
else:
83-
rrtype = RdataType[self._raw_record['rrtype']].name
83+
rrtype = RdataType[self._raw_record['rrtype'].upper()].name
8484

8585
if not isinstance(self._raw_record['rdata'], (str, list)):
8686
raise PDNSRecordTypeError('rdata', 'str, list of string', self._raw_record["rdata"])

0 commit comments

Comments
 (0)