Modify

Opened 5 years ago

Closed 5 years ago

#5910 closed defect (duplicate)

Error with entries without author in timeline

Reported by: imcybot@… Owned by: coderanger
Priority: normal Component: HackergotchiPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Bitten inserts entries into the timeline that have no author, causing the HackergotchiPlugin to crash the timeline view.

This fixed it for me:

--- old/web_ui.py
+++ new/web_ui.py
@@ -38,6 +38,8 @@
                 closure_state[0] += 1
                 
                 # Extract the user information
+                if data['events'][n]['author'] is None:
+                    return stream
                 author = data['events'][n]['author'].strip()
                 user_info = cache.get(author)
                 if user_info is not None:

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by imcybot@…

  • Resolution set to duplicate
  • Status changed from new to closed

Just noticed that this is a duplicate of #4336

Add Comment

Modify Ticket

Action
as closed The owner will remain coderanger.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.