summaryrefslogtreecommitdiff
path: root/plugins/notify.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/notify.py')
-rw-r--r--plugins/notify.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/notify.py b/plugins/notify.py
index 8f21de5..3670e20 100644
--- a/plugins/notify.py
+++ b/plugins/notify.py
@@ -12,16 +12,17 @@
disable = False
-try:
- import pynotify
-except ImportError:
- disable = True
-
from portato import get_listener
from portato.helper import warning, error, debug
from portato.constants import APP_ICON, APP
+try:
+ import pynotify
+except ImportError:
+ disable = True
+ warning("NOTIFY :: %s", _("Cannot import 'pynotify'."))
+
class Notify (Plugin):
__author__ = "René 'Necoro' Neumann"
__description__ = "Show notifications when an emerge process finishes."