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
In packet.py , in write_fields method sometimes the name field will be None and attempting to write it will eventually fail saying NoneType has no attribute 'encode'
This is the workaround I made:
# packet.py line 106defwrite_fields(self, packet_buffer):
# Write the fields comprising the body of the packet (excluding the# length, packet ID, compression and encryption) into a PacketBuffer.forfieldinself.definition: # pylint: disable=not-an-iterableforvar_name, data_typeinfield.items():
data=getattr(self, var_name) # when var_name is 'name', sometimes returns NoneifdataisNone: data='error'# added linedata_type.send_with_context(data, packet_buffer, self.context)
Can someone look up into this?
Thanks
The text was updated successfully, but these errors were encountered:
In packet.py , in write_fields method sometimes the
name
field will be None and attempting to write it will eventually fail saying NoneType has no attribute 'encode'This is the workaround I made:
Can someone look up into this?
Thanks
The text was updated successfully, but these errors were encountered: