Opened 15 months ago
Last modified 15 months ago
#214 new defect
Forum becomes unusable when markup throws an exception
| Reported by: | wangwei | Owned by: | somebody |
|---|---|---|---|
| Priority: | major | Milestone: | 1.0 |
| Component: | Posting | Version: | devel |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
If an exception is thrown during markup transform, a topic is created anyway, but with no posts (last_post_id = NULL). If you try to open forum after that, you get this:
File "/path/to/djangobb_forum/templatetags/forum_extras.py", line 46, in render
formated_time = u'%s %s' % (naturalday(time), time.strftime('%H:%M:%S'))
AttributeError: 'NoneType' object has no attribute 'strftime'
So the the whole forum won't open until you delete these topics.
Change History (2)
comment:1 follow-up: ↓ 2 Changed 15 months ago by slav0nic
comment:2 in reply to: ↑ 1 Changed 15 months ago by wangwei
Replying to slav0nic:
we used transactions a long time, u used old forum?
Some DBMS don't support transactions.
Note: See
TracTickets for help on using
tickets.

we used transactions a long time, u used old forum?