﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
23274	Bad exception management: custom template tags	micfan	nobody	"Hey, I am writing a simple custom tags demo following (https://docs.djangoproject.com/en/dev/howto//#writing-custom-template-tags).

This line give me an exception: `actual_date = self.date_to_be_formatted.resolve(context)`.

I think the mangement of exception is not good. See that https://github.com/django/django/blob/stable/1.7.x/django/template/base.py#L690, it add a judgement, however, this judgement did not control that https://github.com/django/django/blob/stable/1.7.x/django/template/base.py#L699 `float(var)` function's Exception, which tips me that: 

{{{
#!div style=""font-size: 80%, background: #ffc;""
  {{{#!python
TypeError at /
float() argument must be a string or a number
Request Method:	GET
Request URL:	http://localhost:8000/
Django Version:	1.5
Exception Type:	TypeError
Exception Value:	
float() argument must be a string or a number
Exception Location:	/usr/local/lib/python2.7/dist-packages/django/template/base.py in __init__, line 695
Python Executable:	/usr/bin/python
Python Version:	2.7.6
  }}}
}}}

did you any good man catch this evil bug, please?"	Bug	closed	Template system	1.5	Normal	invalid	custom template tags		Unreviewed	0	0	0	0	0	0
