-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Erro with unknown attribute #87
Comments
marzsv
added a commit
to wowfi/pyrad
that referenced
this issue
Aug 15, 2018
- Raises exception when attribute does not exist in dictionary. - Method to check if a dictionary contains an attribute. - Method to check the dictionary attribute type.
twschum
added a commit
to twschum/pyrad
that referenced
this issue
Apr 5, 2019
====================================================================== ERROR: testDecodePacketWithUnknownAttribute (tests.testPacket.PacketTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/testPacket.py", line 337, in testDecodePacketWithUnknownAttribute six.b('\x01\x02\x00\x1b1234567890123456\x09\x07value')) File "/Users/user/pyrad/pyrad/packet.py", line 415, in DecodePacket elif self.dict.attributes[self._DecodeKey(key)].type == 'tlv': KeyError: 9
twschum
added a commit
to deepfield/pyrad
that referenced
this issue
Apr 11, 2019
====================================================================== ERROR: testDecodePacketWithUnknownAttribute (tests.testPacket.PacketTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/testPacket.py", line 337, in testDecodePacketWithUnknownAttribute six.b('\x01\x02\x00\x1b1234567890123456\x09\x07value')) File "/Users/user/pyrad/pyrad/packet.py", line 415, in DecodePacket elif self.dict.attributes[self._DecodeKey(key)].type == 'tlv': KeyError: 9
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A KeyError is generated when the server receives a packet with an attribute that does not exist in the dictionaries. In this case Chargeable-User-Identity (89).
The text was updated successfully, but these errors were encountered: