From 4e583cd4dedd6467f300eea5947a4f6bb2c036f2 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Fri, 9 Apr 2021 12:10:19 +0200 Subject: 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 --- examples/py-json-stdout/json-stdout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/py-json-stdout/json-stdout.py') diff --git a/examples/py-json-stdout/json-stdout.py b/examples/py-json-stdout/json-stdout.py index a14447745..8200bf12b 100755 --- a/examples/py-json-stdout/json-stdout.py +++ b/examples/py-json-stdout/json-stdout.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 -- cgit v1.2.3