Skip to content

Commit

Permalink
Replace SubprocessError with FileNotFoundError
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanaz committed Jun 20, 2020
1 parent 96b8f39 commit c953931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/servo/command_base.py
Expand Up @@ -537,7 +537,7 @@ def needs_gstreamer_env(self, target, env, uwp=False, features=[]):
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
Expand Down

0 comments on commit c953931

Please sign in to comment.