mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #8024 - tareqak:warning_message_about_os_x_notifications_is_unclear, r=frewsxcv
Add clarity to warning message about OS X notifications I made this change with respect to this issue: https://github.com/servo/servo/issues/7840 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8024) <!-- Reviewable:end -->
This commit is contained in:
commit
f8ada66919
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ def notify_linux(title, text):
|
|||
method = notify_obj.get_dbus_method("Notify", "org.freedesktop.Notifications")
|
||||
method(title, 0, "", text, "", [], {"transient": True}, -1)
|
||||
except:
|
||||
raise Exception("Please make sure that the Python dbus module is installed!")
|
||||
raise Exception("Optional Python module 'dbus' is not installed.")
|
||||
|
||||
|
||||
def notify_win(title, text):
|
||||
|
@ -82,7 +82,7 @@ def notify_darwin(title, text):
|
|||
centre = Foundation.NSUserNotificationCenter.defaultUserNotificationCenter()
|
||||
centre.scheduleNotification_(note)
|
||||
except ImportError:
|
||||
raise Exception("Please make sure that the Python pyobjc module is installed!")
|
||||
raise Exception("Optional Python module 'pyobjc' is not installed.")
|
||||
|
||||
|
||||
def notify_build_done(elapsed):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue