Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Commit

Permalink
compatibility with pyramid_formalchemy
Browse files Browse the repository at this point in the history
in a pyramid_formalchemy application a ValueError is thrown instead of
TemplateLookupException or AttributeError exceptions
  • Loading branch information
bbinet committed Jun 9, 2011
1 parent 446a3f8 commit 41625ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GeoFormAlchemy/geoformalchemy/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def __render_map(self, read_only):
the 'map.mako' template file is in the same folder as the other FormAlchemy template files.
This is the case when used inside a Pylons app."""
return config.engine.render('map', **template_args)
except (TemplateLookupException, AttributeError):
except (TemplateLookupException, AttributeError, ValueError):
# otherwise render the default template using an own template engine
map_template = self.get_templates().get_template('map.mako')
return map_template.render(**template_args)
Expand Down

0 comments on commit 41625ea

Please sign in to comment.