Ticket #7557: 7557-1.diff

File 7557-1.diff, 564 bytes (added by Matt McClanahan, 16 years ago)
  • django/template/__init__.py

     
    636636            if var.endswith('.'):
    637637                raise ValueError
    638638
     639        except TypeError:
     640              raise TypeError("Variable must be a string or number, got %s" % type(var))
     641
    639642        except ValueError:
    640643            # A ValueError means that the variable isn't a number.
    641644            if var.startswith('_(') and var.endswith(')'):
Back to Top