We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c89fc6e + edc2287 commit 7edb67eCopy full SHA for 7edb67e
src/pyshark/tshark/tshark.py
@@ -2,6 +2,7 @@
2
import json
3
4
from packaging import version
5
+from configparser import NoSectionError
6
import os
7
import subprocess
8
import sys
@@ -35,7 +36,10 @@ def get_process_path(tshark_path=None, process_name="tshark"):
35
36
# Check if `config.ini` exists in the current directory or the pyshark directory
37
config = get_config()
38
if config:
- possible_paths.append(config.get(process_name, f"{process_name}_path"))
39
+ try:
40
+ possible_paths.append(config.get(process_name, f"{process_name}_path"))
41
+ except NoSectionError:
42
+ pass
43
44
# Add the user provided path to the search list
45
if tshark_path is not None:
0 commit comments