Closed crocogorical closed 3 years ago
During packing of IP6 instances, it does not appear to be possible to raise an AttributeError during this section of code.
if
self.data.sum
dpkt.in_cksum_done
It is possible that self.data.sum could be read-only, which would raise an AttributeError when trying to write to it.
AttributeError
I cannot think of a way to generate this exception, so we should remove the code, or design a test for it.
@crocogorical Feel free to merge at your convenience
During packing of IP6 instances, it does not appear to be possible to raise an AttributeError during this section of code.
if
statement on line 117 already readsself.data.sum
dpkt.in_cksum_done
.It is possible that
self.data.sum
could be read-only, which would raise anAttributeError
when trying to write to it.I cannot think of a way to generate this exception, so we should remove the code, or design a test for it.