summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/new_version.py5
-rw-r--r--plugins/notify.py11
2 files changed, 10 insertions, 6 deletions
diff --git a/plugins/new_version.py b/plugins/new_version.py
index f8d5d3c..94e61ca 100644
--- a/plugins/new_version.py
+++ b/plugins/new_version.py
@@ -10,13 +10,16 @@
#
# Written by René 'Necoro' Neumann <necoro@necoro.net>
+from portato.helper import debug, warning
+
try:
from bzrlib import plugin, branch
except ImportError:
plugin = branch = None
+ warning("NEW_VERSION :: Cannot import 'bzrlib'")
+
import gobject
-from portato.helper import debug, warning
from portato import get_listener
from portato.constants import REPOURI, VERSION, APP_ICON, APP
from portato.gui.utils import GtkThread
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."