From 9a33be6294316f6a974b87ea67d363c9ddcb5798 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Tue, 28 Jul 2009 12:51:08 +0200 Subject: Make the plugins print warnings, if they get disabled due to missing imports --- plugins/new_version.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/new_version.py') 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 +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 -- cgit v1.2.3