From c953931621679f37fa31a1dc5f00ebb9f0c204e0 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sun, 21 Jun 2020 01:13:31 +0200 Subject: [PATCH] Replace SubprocessError with FileNotFoundError --- python/servo/command_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/servo/command_base.py b/python/servo/command_base.py index b84a811c76b..5e89af3fd47 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -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