mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Catch more exceptions when delivering build notifications
It seems that catching ImportError isn't enough, so we must catch any type of exception when trying to deliver a build notification. Fixes #29645.
This commit is contained in:
parent
9acb9cc5cf
commit
ef8359df4b
1 changed files with 2 additions and 3 deletions
|
@ -743,9 +743,8 @@ class MachCommands(CommandBase):
|
||||||
{"transient": True}, # hints
|
{"transient": True}, # hints
|
||||||
-1 # timeout
|
-1 # timeout
|
||||||
)
|
)
|
||||||
except ImportError:
|
except Exception as exception:
|
||||||
print("[Warning] Could not generate notification: "
|
print(f"[Warning] Could not generate notification: {exception}",
|
||||||
"Optional Python module 'dbus' is not installed.",
|
|
||||||
file=sys.stderr)
|
file=sys.stderr)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue