diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-08-07 16:07:31 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-08-07 16:07:31 -0400 |
commit | c3d1a9b1ea3a561f9cda1fafa5ec4112f63297af (patch) | |
tree | 0c3881170435d96a7d677f77b1ec79c8973acf6b /src/lib/Bcfg2/Server/Plugins/TGenshi.py | |
parent | a94074b54fa61f593df4945a1ebf4e3edd8cb27d (diff) | |
download | bcfg2-c3d1a9b1ea3a561f9cda1fafa5ec4112f63297af.tar.gz bcfg2-c3d1a9b1ea3a561f9cda1fafa5ec4112f63297af.tar.bz2 bcfg2-c3d1a9b1ea3a561f9cda1fafa5ec4112f63297af.zip |
raise ImportError if missing genshi libs prevent import of TGenshi
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/TGenshi.py')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/TGenshi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/TGenshi.py b/src/lib/Bcfg2/Server/Plugins/TGenshi.py index c4dd40614..b3686dbed 100644 --- a/src/lib/Bcfg2/Server/Plugins/TGenshi.py +++ b/src/lib/Bcfg2/Server/Plugins/TGenshi.py @@ -18,7 +18,7 @@ try: TextTemplate, MarkupTemplate, TemplateError except ImportError: logger.error("TGenshi: Failed to import Genshi. Is it installed?") - raise Bcfg2.Server.Plugin.PluginInitError + raise try: from genshi.template import NewTextTemplate have_ntt = True |