CESNET / Nemea-Framework

Nemea framework is the heart of the Nemea system. It contains implementation of common communication interfaces, UniRec data format and useful datastructures and algorithms.
11 stars 24 forks source link

pytrap: support str object in TrapCtx.send() #173

Closed cejkato2 closed 3 years ago

cejkato2 commented 3 years ago

Unsupported str causes exception in the following code: trap.send(json.dumps(j))

This PR should fix this issue (adding this support). The test pytrap/test/pytrapmodule_unittest.py fails for the previous version.