diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2021-04-09 12:10:19 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2021-04-09 14:12:48 +0200 |
commit | 4e583cd4dedd6467f300eea5947a4f6bb2c036f2 (patch) | |
tree | dae818feb42faa54a1c2e68f0bb8d35f7ee92d13 /examples/py-flow-info/flow-info.py | |
parent | 0a7ad7a76ac34d7a0c7635591203de08979b60da (diff) |
Added JSON schema validation to run_tests.sh
* Python3 scripts are now compatible with versions <3.6
* improved and prettified run_tests.sh
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'examples/py-flow-info/flow-info.py')
-rwxr-xr-x | examples/py-flow-info/flow-info.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/py-flow-info/flow-info.py b/examples/py-flow-info/flow-info.py index 3b11a03b7..6f90ec7fa 100755 --- a/examples/py-flow-info/flow-info.py +++ b/examples/py-flow-info/flow-info.py @@ -7,7 +7,7 @@ sys.path.append(os.path.dirname(sys.argv[0]) + '/../usr/share/nDPId') try: import nDPIsrvd from nDPIsrvd import nDPIsrvdSocket, TermColor -except ModuleNotFoundError: +except ImportError: sys.path.append(os.path.dirname(sys.argv[0]) + '/../../dependencies') import nDPIsrvd from nDPIsrvd import nDPIsrvdSocket, TermColor |