On 11 June 2014 18:19, Nahraf34 <[email protected]> wrote:
> I receive the following error when I attempt to perform the dig command:
>     assert (payload is None) or isinstance(payload, UnknownRecord) or 
> (payload.TYPE == type)
> exceptions.AssertionError:

Hi,

I tried to catch you on #twisted earlier, but you'd gone. I think the
problem is that you need to pass a `type` argument to `RRHeader` which
matches the payload you supply. eg
 * https://gist.github.com/wallrj/84c3815a0be52831e077

It happens to just work with A records because that's the default type.

It would be nice if RRHeader would just examine the payload and
automatically set it's type. Perhaps we can add a new constructor
class method eg `RRHeader.fromPayload` which does this.

Hope that helps.

-RichardW,

_______________________________________________
Twisted-Python mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to