Permalink
Browse files

templatetag exception, fixed #138

  • Loading branch information...
1 parent 41b293c commit 97837173a36ac89d999e4c5e3a0e75cd6349012b @sehmaschine sehmaschine committed with Jan 29, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 filebrowser/templatetags/fb_versions.py
@@ -124,7 +124,9 @@ def render(self, context):
elif site.storage.modified_time(source) > site.storage.modified_time(version_path):
version_path = version_generator(source, version_prefix, force=True, site=site)
context[self.var_name] = FileObject(version_path, site=site)
- except:
+ except Exception as e:
+ if settings.TEMPLATE_DEBUG:
+ raise e
context[self.var_name] = ""
return ''

0 comments on commit 9783717

Please sign in to comment.