From 529843a4a48c721c0889263c52242e4dcbf74783 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Wed, 18 Nov 2009 15:20:28 +0000 Subject: [PATCH] Instead of using the log, raise a PluginError --- output_twitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output_twitter.py b/output_twitter.py index 02c8899..10320a2 100644 --- a/output_twitter.py +++ b/output_twitter.py @@ -75,6 +75,6 @@ class OutputTwitter: try: import twitter except ImportError: - log.error('Unable to import module twitter, is python-twitter installed?') + raise PluginError('Unable to import module twitter, python-twitter is required to use output_twitter') else: register_plugin(OutputTwitter, 'twitter')