HenryHu / pybbs

Python implementation of the BBS server, providing BBS data interface
Other
28 stars 3 forks source link

[Bug Report] Cannot clear unread of all boards #17

Closed mrroach9 closed 11 years ago

mrroach9 commented 11 years ago

When providing only session (with no "name" or "to" param, as indicated in the documentation), server returns 500 with the following info:

Traceback (most recent call last): File "/home/bbs/pybbs/datasvc.py", line 137, in do_POST DataService.classes[cls].POST(self, session, params, op) File "/home/bbs/pybbs/Board.py", line 141, in POST Board.ClearUnreadAll(session.GetUser()) File "/home/bbs/pybbs/Board.py", line 498, in ClearUnreadAll board.ClearUnread(user) File "/home/bbs/pybbs/Board.py", line 489, in ClearUnread return bread.Clear(self.name) File "/home/bbs/pybbs/BRead.py", line 301, in Clear self._cache[entry]._list[0] = bh.nowidAttributeError: 'NoneType' object has no attribute 'nowid'

// THERE MUST BE SOMEWHERE YOU 改屎了!

Please confirm and fix it.

Thanks!

HenryHu commented 11 years ago

Fixed (possible). It's caused by the removal of wheat_land.