Hello dnspython developers,
Any idea about the exception below in NameDict?
On 07/07/2012 21:36, Anand Buddhdev wrote:
> Hello dnspython users and devs,
>
> I'm trying to use the dns.namedict module. If I create a NameDict
> object, and store zones z1 and z2 in it, then calls to
> get_deepest_match() for sub.z1 and sub.z2 succeed as I expect.
>
> However, if I call the method for z3, then I expect to get back either
> None, or dns.name.empty. Instead, I'm getting an exception:
>
>>>> z.get_deepest_match(dns.name.from_text('z3'))
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/Library/Python/2.7/site-packages/dns/namedict.py", line 58, in
> get_deepest_match
> v = self[dns.name.empty]
> KeyError: <DNS name @>
>
> Is this a bug?
>
> Anand
> _______________________________________________
> dnspython-users mailing list
> [email protected]
> http://howl.play-bow.org/mailman/listinfo/dnspython-users
>
_______________________________________________
dnspython-users mailing list
[email protected]
http://howl.play-bow.org/mailman/listinfo/dnspython-users