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-risky-flow-to-pcap/risky-flow-to-pcap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/py-risky-flow-to-pcap/risky-flow-to-pcap.py') diff --git a/examples/py-risky-flow-to-pcap/risky-flow-to-pcap.py b/examples/py-risky-flow-to-pcap/risky-flow-to-pcap.py index 11165ed35..42004eebe 100755 --- a/examples/py-risky-flow-to-pcap/risky-flow-to-pcap.py +++ b/examples/py-risky-flow-to-pcap/risky-flow-to-pcap.py @@ -8,7 +8,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