Skip to content

Commit

Permalink
[#2939] Fix errors on dashboard re undefined activity icon
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Nov 19, 2012
1 parent 3914033 commit 85be1a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/lib/activity_streams.py
Expand Up @@ -198,6 +198,7 @@ def activity_stream_string_new_related_item():
'follow user': 'user',
'follow group': 'group',
'new related item': 'picture',
'undefined': 'user', # This is when no activity icon can be found
}

# A list of activity types that may have details
Expand Down Expand Up @@ -233,8 +234,7 @@ def activity_list_to_html(context, activity_stream):
"type '%s'" % str(activity_type))

if not activity_type in activity_stream_string_icons:
raise NotImplementedError("No activity icon for activity "
"type '%s'" % str(activity_type))
activity_icon = activity_stream_string_icons['undefined']

activity_msg = activity_stream_string_functions[activity_type]()
activity_icon = activity_stream_string_icons[activity_type]
Expand Down

0 comments on commit 85be1a7

Please sign in to comment.