mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-04 22:07:45 +00:00
edit descriptor module
This commit is contained in:
parent
0d81c35092
commit
d0876ca404
2 changed files with 5 additions and 5 deletions
|
|
@ -43,7 +43,7 @@ class Packet:
|
|||
|
||||
@param fieldName: Name of the data to set
|
||||
@param value: Value to set"""
|
||||
self._packet[fieldName] = value
|
||||
self._packet[fieldName] = str(value)
|
||||
|
||||
def get(self, fieldName):
|
||||
"""!Returns the value from a single field.
|
||||
|
|
@ -52,7 +52,7 @@ class Packet:
|
|||
@param fieldName: Name of the field
|
||||
@return Value or None"""
|
||||
try:
|
||||
return self._packet[fieldName]
|
||||
return str(self._packet[fieldName])
|
||||
except:
|
||||
logging.warning("field not found: %s", fieldName)
|
||||
return None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue