From 47d75ab686c2b33e0fde1202b3e19f1541e309cb Mon Sep 17 00:00:00 2001 From: Istvan Ruzman Date: Fri, 4 Sep 2020 19:14:09 +0200 Subject: [PATCH] add some clarification comment --- src/pyrad3/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pyrad3/utils.py b/src/pyrad3/utils.py index e72fe8e..caea388 100644 --- a/src/pyrad3/utils.py +++ b/src/pyrad3/utils.py @@ -124,9 +124,10 @@ def pre_parse_attributes( # pylint: disable=too-many-branches else: modifier = 2 # Redundand in the "normal" case - tmp_attributes = [(key, value, offset + modifier,)] + tmp_attributes = [(key, value, offset + modifier)] except (KeyError, IndexError): # We do not know the TLV, but the packet seems to be well-formed so far + # RFC recommends to treat unknown Attributes as transparently as blobs tmp_attributes = [(key, value, offset + 2)] for key, value, offset in tmp_attributes: