Permalink
Browse files

Just raise ImportError instead of wrapping it

  • Loading branch information...
chadwhitacre committed May 5, 2012
1 parent 4a9d578 commit fcc83c2038dfb168557b3809896c671c1fc21916
Showing with 1 addition and 3 deletions.
  1. +1 −3 aspen/resources/negotiated_resource.py
@@ -134,9 +134,7 @@ def _get_renderer_factory(self, media_type, renderer):
factories = self.website.renderer_factories
make_renderer = factories.get(renderer, None)
if isinstance(make_renderer, ImportError):
- error = traceback.format_exc(make_renderer)
- raise ValueError("ImportError for renderer %s (used for %s):%s%s"
- % (renderer, media_type, os.linesep, error))
+ raise make_renderer
elif make_renderer is None:
possible = []
want_legend = False

0 comments on commit fcc83c2

Please sign in to comment.