Error !

AttributeError: 'NoneType' object has no attribute 'pris'

<div class="text head"> % if bok.statuskode in ('04'): <% pris = bok.beholdning.pris if pris.endswith(',00'): pris = pris.replace(',00', ',-') %> <div class="price fr">
templates/default/book, line 56:
<%
templates/default/site, line 69:
<div class="main full${['', ' page_slider'][object.val('template') == 'startpage']}" role="main">
/srv/limefour_data/limecms/eldo/eldo01/local/lib/python2.7/site-packages/Mako-1.0.3-py2.7.egg/mako/runtime.py, line 890:
callable_(context, *args, **kwargs)
/srv/limefour_data/limecms/eldo/eldo01/local/lib/python2.7/site-packages/Mako-1.0.3-py2.7.egg/mako/runtime.py, line 864:
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
/srv/limefour_data/limecms/eldo/eldo01/local/lib/python2.7/site-packages/Mako-1.0.3-py2.7.egg/mako/runtime.py, line 829:
**_kwargs_for_callable(callable_, data))
/srv/limefour_data/limecms/eldo/eldo01/local/lib/python2.7/site-packages/Mako-1.0.3-py2.7.egg/mako/template.py, line 445:
return runtime._render(self, self.callable_, args, data)
/var/limecms/eldo/eldo01/eldo-inst/Products/LimeTemplate/LimeTemplate.py, line 702:
html = mytemplate.render(object=object, site=site, request=self.REQUEST, extra=extra.get('kwargs', None), **extra)