diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2022-06-07 17:59:47 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2022-06-07 17:59:47 +0200 |
commit | 77a87254b65f8f58ae58051f7422160ca33e648c (patch) | |
tree | 7bfb5ce84dbe1156528d0c6be8f510119fa0c009 /examples | |
parent | 4fde63b5c27f0e3b809545d9e877c2218148b475 (diff) |
nDPIsrvd.py: Throw SocketTimeout Exception to catch both timeout exceptions different Python versions can throw.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'examples')
-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 541a8c16d..7384d687a 100755 --- a/examples/py-flow-info/flow-info.py +++ b/examples/py-flow-info/flow-info.py @@ -439,7 +439,7 @@ if __name__ == '__main__': except KeyboardInterrupt: print('\n\nKeyboard Interrupt: cleaned up {} flows.'.format(len(nsock.shutdown()))) break - except TimeoutError: + except nDPIsrvd.SocketTimeout: stats.updateSpinner() stats.resetStatus() stats.printStatus() |