Replace SubprocessError with FileNotFoundError

This commit is contained in:
Kagami Sascha Rosylight 2020-06-21 01:13:31 +02:00
parent 96b8f39277
commit c953931621

View file

@ -537,7 +537,7 @@ class CommandBase(object):
try:
if check_gstreamer_lib():
return False
except subprocess.SubprocessError:
except (FileNotFoundError, WindowsError):
# Some systems don't have pkg-config; we can't probe in this case
# and must hope for the best
return False