summaryrefslogtreecommitdiff
path: root/plugins/notify.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/notify.py')
-rw-r--r--plugins/notify.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/notify.py b/plugins/notify.py
index 8f21de5..4aba2c6 100644
--- a/plugins/notify.py
+++ b/plugins/notify.py
@@ -12,15 +12,15 @@
disable = False
+from portato import get_listener
+
+from portato.constants import APP_ICON, APP
+
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
+ helper.warning("NOTIFY :: %s", _("Cannot import 'pynotify'."))
class Notify (Plugin):
__author__ = "René 'Necoro' Neumann"
@@ -32,7 +32,7 @@ class Notify (Plugin):
def notify (self, retcode, **kwargs):
if retcode is None:
- warning("NOTIFY :: %s", _("Notify called while process is still running!"))
+ helper.warning("NOTIFY :: %s", _("Notify called while process is still running!"))
else:
icon = APP_ICON
if retcode == 0: