Instead of using the log, raise a PluginError

This commit is contained in:
2009-11-18 15:20:28 +00:00
parent 5296e35b2e
commit 529843a4a4

View File

@@ -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')