https://github.com/KimiNewt/pyshark/blob/4517bdfed7a65ac9a6a31354f086e75ddd5dac3b/src/pyshark/packet/layers/xml_layer.py#L79 please add a message to this error raising - something like "layer {the_layer} has no attribute {the_requested_attribute}"