Error !

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

try: with transaction.manager: blog = api.getBlogByDateAndTitle(dateYm, title) title = blog.blogTitle # print blog.blogType if blog.blogType == "0": title = _("【TOP33】") + title else: title = _("【教学】") + title
/opt/source/mscn-site/./mscnsite/views/blog.py, line 173:
title = blog.blogTitle