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
During RST command, if the transaction response is empty, the field transaction.response may still be None. However, it is referenced at line 174 in file coapthon/layers/messagelayer.py, function receive_empty():
elif not transaction.response.acknowledged:
Suggestion: first check if transaction.response is not None:
elif (transaction.response is not None) and (not transaction.response.acknowledged):
This is exactly what is done in the case of the ACK command, at line 169 of the same file.
The text was updated successfully, but these errors were encountered:
phc-1020
changed the title
On RST, transaction.response could be None
On RST with empty response, transaction.response could be None
Feb 6, 2024
phc-1020
added a commit
to phc-1020/CoAPthon3
that referenced
this issue
Feb 9, 2024
During RST command, if the transaction response is empty, the field transaction.response may still be None. However, it is referenced at line 174 in file coapthon/layers/messagelayer.py, function receive_empty():
elif not transaction.response.acknowledged:
Suggestion: first check if transaction.response is not None:
elif (transaction.response is not None) and (not transaction.response.acknowledged):
This is exactly what is done in the case of the ACK command, at line 169 of the same file.
The text was updated successfully, but these errors were encountered: