AlphacrucisCollege / django-template-utils

Fork of (abandoned?) package used in ac.edu.au. Exported via GoogleCodeExport.
https://bitbucket.org/ubernostrum/django-template-utils
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

raises an exception which is not imported #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. do not have the Python smartypants module installed
2. use the smartypants template tag

What is the expected output? What do you see instead?
Should output:
  TemplateSyntaxError: Error in smartypants filter: the Python smartypants
module is not installed or could not be imported

Instead outputs:
  Original Traceback (most recent call last):
    File "django/template/debug.py", line 71, in render_node
      result = node.render(context)
    File "django/template/debug.py", line 87, in render
      output = force_unicode(self.filter_expression.resolve(context))
    File "django/template/__init__.py", line 573, in resolve
      new_obj = func(obj, *arg_vals)
    File "template_utils/templatetags/generic_markup.py", line 40, in
smartypants
      raise TemplateSyntaxError("Error in smartypants filter: the Python
smartypants module is not installed or could not be imported")
  NameError: global name 'TemplateSyntaxError' is not defined

What version of the product are you using? On what operating system?
Revision 109

Please provide any additional information below.
Patch attached

Original issue reported on code.google.com by akaih...@gmail.com on 4 Jun 2009 at 3:58

Attachments: