Skip to content
Browse files

templatetag exception, fixed #138

  • Loading branch information...
1 parent 363c392 commit 1414c9de8e87ffceb84410c964044fcef040813a @sehmaschine committed Jan 29, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 filebrowser/templatetags/fb_versions.py
View
4 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 1414c9d

Please sign in to comment.
Something went wrong with that request. Please try again.