aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/build_commands.py
diff options
context:
space:
mode:
authorKagami Sascha Rosylight <saschanaz@outlook.com>2020-06-20 23:33:30 +0200
committerKagami Sascha Rosylight <saschanaz@outlook.com>2020-06-20 23:53:49 +0200
commit96b8f392772b360e9abd41818d33c5e0d8a94e9e (patch)
tree645b73dc8983bd3e82ab0be3db87ebfd3cbd246b /python/servo/build_commands.py
parent98a40a432c3a9f9dd4d12763aed3209e0d45eedd (diff)
downloadservo-96b8f392772b360e9abd41818d33c5e0d8a94e9e.tar.gz
servo-96b8f392772b360e9abd41818d33c5e0d8a94e9e.zip
Fix new flake8 warnings
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r--python/servo/build_commands.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py
index c3a0819ac00..3a4f05729ed 100644
--- a/python/servo/build_commands.py
+++ b/python/servo/build_commands.py
@@ -46,7 +46,7 @@ def notify_linux(title, text):
notify_obj = bus.get_object("org.freedesktop.Notifications", "/org/freedesktop/Notifications")
method = notify_obj.get_dbus_method("Notify", "org.freedesktop.Notifications")
method(title, 0, "", text, "", [], {"transient": True}, -1)
- except:
+ except ImportError:
raise Exception("Optional Python module 'dbus' is not installed.")
@@ -55,7 +55,7 @@ def notify_win(title, text):
from servo.win32_toast import WindowsToast
w = WindowsToast()
w.balloon_tip(title, text)
- except:
+ except WindowsError:
from ctypes import Structure, windll, POINTER, sizeof
from ctypes.wintypes import DWORD, HANDLE, WINFUNCTYPE, BOOL, UINT
@@ -920,7 +920,7 @@ def package_gstreamer_dlls(env, servo_exe_dir, target, uwp):
for gst_lib in gst_dlls:
try:
shutil.copy(path.join(gst_root, "bin", gst_lib), servo_exe_dir)
- except:
+ except FileNotFoundError:
missing += [str(gst_lib)]
for gst_lib in missing:
@@ -976,7 +976,7 @@ def package_gstreamer_dlls(env, servo_exe_dir, target, uwp):
for gst_lib in gst_dlls:
try:
shutil.copy(path.join(gst_plugin_path, gst_lib), servo_exe_dir)
- except:
+ except FileNotFoundError:
missing += [str(gst_lib)]
for gst_lib in missing: