I have some custom functions in model class which process some data, and then add custom attribute to the model. Thing is, I do not know how could I raise an exception if there are any while the template is generated (the error seems to be only silent, so it will process the template further but gives NO ERROR )
In the view

```
test.objects.all()
render_to_string('template.html', {'test': test})

```

In the template

```
{{ entry.state }}

```

In the model:

```
@property
def state(self):
    somedict = {'a': 111}
    try:
       print somedict['b']
    except Exception as e:
       FATAL_ERROR

```

What should I put in the place of fatal\_error so that the template processing should stop immediatelly, or gives some exception to the render function ? 
Thanks