mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-07 23:34:01 +00:00
littles changes
This commit is contained in:
parent
c2a09ad7c3
commit
3c2aa557fe
2 changed files with 16 additions and 4 deletions
|
|
@ -34,7 +34,11 @@ class Packet:
|
|||
self._packet = {"timestamp": time.time()}
|
||||
else:
|
||||
logging.debug("create bwPacket from string")
|
||||
self._packet = eval(bwPacket)
|
||||
try:
|
||||
self._packet = eval(bwPacket.strip())
|
||||
except:
|
||||
# todo can we repair teh packet anyway?
|
||||
logging.exception("error while create packet from string")
|
||||
|
||||
def __str__(self):
|
||||
"""!Return the intern _packet dict as string"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue