You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I generate an attribute User-Password (CHAP), I get string start with '0x'. This leads to error:
File "/usr/local/lib/python2.7/dist-packages/pyrad/packet.py", line 150, in _EncodeKeyValues
return (key, [self._EncodeValue(attr, v) for v in values])
File "/usr/local/lib/python2.7/dist-packages/pyrad/packet.py", line 123, in _EncodeValue
result = tools.EncodeAttr(attr.type, value)
File "/usr/local/lib/python2.7/dist-packages/pyrad/tools.py", line 178, in EncodeAttr
return EncodeOctets(value)
File "/usr/local/lib/python2.7/dist-packages/pyrad/tools.py", line 26, in EncodeOctets
return binascii.unhexlify(hexstring)
TypeError: Odd-length string
Can this exception be put into a separate function?
The text was updated successfully, but these errors were encountered:
When I generate an attribute User-Password (CHAP), I get string start with '0x'. This leads to error:
Can this exception be put into a separate function?
The text was updated successfully, but these errors were encountered: