Get the timeout error thrown by pyshark apply_on_packets function
()
| 49 | |
| 50 | |
| 51 | def get_timeout_error(): |
| 52 | """ |
| 53 | Get the timeout error thrown by pyshark apply_on_packets function |
| 54 | """ |
| 55 | try: |
| 56 | # If asyncio timeout error exists, this will be returned |
| 57 | return asyncio.exceptions.TimeoutError |
| 58 | except Exception: |
| 59 | # For older python versions, where asyncio timeout error |
| 60 | # doesn't exist, this one will be returned. |
| 61 | return concurrent.futures._base.TimeoutError |
| 62 | |
| 63 | |
| 64 | def check_for_requirements(start_api_server): |
no outgoing calls
no test coverage detected