Modify

Opened 9 years ago

Closed 9 years ago

#12428 closed defect (fixed)

TypeError: 'NoneType' object is not iterable

Reported by: anonymous Owned by: Peter Suter
Priority: normal Component: CardsPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

2015-06-22 09:16:17,772 Trac[main] ERROR: Internal Server Error: 
Traceback (most recent call last):
  File "build\bdist.win32\egg\trac\web\main.py", line 551, in _dispatch_request
    dispatcher.dispatch(req)
  File "build\bdist.win32\egg\trac\web\main.py", line 225, in dispatch
    resp = chosen_handler.process_request(req)
  File "build\bdist.win32\egg\cards\core.py", line 63, in process_request
    Card.delete_by_id(self.env, card_id)
  File "build\bdist.win32\egg\cards\model.py", line 102, in delete_by_id
    stack, rank = cursor.fetchone()
TypeError: 'NoneType' object is not iterable

Attachments (0)

Change History (3)

comment:1 Changed 9 years ago by Ryan J Ollos

I can reproduce by attempting to delete a card that has already been deleted. There could be protection implemented, but the limitation is already documented in CardsPlugin#KnownLimitations.

comment:2 Changed 9 years ago by Peter Suter

Right. I'd really like to do something about that limitation at some point. While double-deletes could usually easily be detected and ignored, I assume to solve the problem in general a combination of auto-refresh and conflict detection based on some kind of version number checks would be required. Suggestions welcome.

comment:3 Changed 9 years ago by Peter Suter

Resolution: fixed
Status: newclosed

In 14811:

CardsPlugin: Support for collaborative editing.

  • Conflict detection mechanism.
  • DB upgrade.
  • Refresh button.
  • Auto-refresh every 10 seconds when the cards are visible.
  • Bump version to 1.2

(fix #12428)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Peter Suter.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.