summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-10-17 12:42:26 +0200
committerToni Uhlig <matzeton@googlemail.com>2020-10-17 12:42:26 +0200
commit8cbac2ac88c155c3ef3547b8a2be69a6a3a04f11 (patch)
tree6c0f9dbd391b9e09f05c56ee7d451b4ba0c068c4 /examples
parentec9dc251d2ca9d86627dfaf79abaa88185cd4b54 (diff)
cosmetics, exception verbosity
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/py-flow-info/flow-info.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/py-flow-info/flow-info.py b/examples/py-flow-info/flow-info.py
index 85ada4847..f58bb1db9 100755
--- a/examples/py-flow-info/flow-info.py
+++ b/examples/py-flow-info/flow-info.py
@@ -15,9 +15,8 @@ def parse_json_str(json_str):
if nDPIdEvent.isValid is False:
raise RuntimeError('Missing event id or event name invalid in the JSON string: {}'.format(j))
if nDPIdEvent.BasicEventID != -1:
- be = '{}: {}'.format(TermColor.WARNING + TermColor.BLINK + 'BASIC-EVENT' + TermColor.END,
- nDPIdEvent.BasicEventPrettyName)
- print('{:>18}'.format(be))
+ print('{:>21}: {}'.format(TermColor.WARNING + TermColor.BLINK + 'BASIC-EVENT' + TermColor.END,
+ nDPIdEvent.BasicEventPrettyName))
return
elif nDPIdEvent.FlowEventID == -1:
return