mirror of
https://github.com/nikdoof/flexget-plugins.git
synced 2025-12-18 04:09:24 +00:00
Instead of using the log, raise a PluginError
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user