summaryrefslogtreecommitdiff
path: root/plugins/new_version.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-07-28 12:51:08 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-07-28 12:51:08 +0200
commit9a33be6294316f6a974b87ea67d363c9ddcb5798 (patch)
tree69290133baead393001c95341c30abf263f6ad79 /plugins/new_version.py
parent91758613ba284f6bda3ac0c8ffe34f1a8b308e95 (diff)
downloadportato-9a33be6294316f6a974b87ea67d363c9ddcb5798.tar.gz
portato-9a33be6294316f6a974b87ea67d363c9ddcb5798.tar.bz2
portato-9a33be6294316f6a974b87ea67d363c9ddcb5798.zip
Make the plugins print warnings, if they get disabled due to missing imports
Diffstat (limited to 'plugins/new_version.py')
-rw-r--r--plugins/new_version.py5
1 files changed, 4 insertions, 1 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