Modify ↓
Opened 16 years ago
Closed 16 years ago
#5910 closed defect (duplicate)
Error with entries without author in timeline
| Reported by: | Owned by: | Noah Kantrowitz | |
|---|---|---|---|
| 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)
Note: See
TracTickets for help on using
tickets.



Just noticed that this is a duplicate of #4336