summaryrefslogtreecommitdiff
path: root/examples/py-risky-flow-to-pcap/risky-flow-to-pcap.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/py-risky-flow-to-pcap/risky-flow-to-pcap.py')
-rwxr-xr-xexamples/py-risky-flow-to-pcap/risky-flow-to-pcap.py2
1 files changed, 1 insertions, 1 deletions
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