Handle activities for deleted objects.
This commit is contained in:
@@ -53,7 +53,10 @@ def index():
|
||||
for act in activities['_items']:
|
||||
act.actor_user = pillar.web.subquery.get_user_info(act.actor_user)
|
||||
act.project = id_to_proj[act.project]
|
||||
act.link = current_attract.link_for_activity(act)
|
||||
try:
|
||||
act.link = current_attract.link_for_activity(act)
|
||||
except pillarsdk.ResourceNotFound:
|
||||
act.link = None
|
||||
|
||||
return render_template('attract/index.html',
|
||||
tasks=tasks,
|
||||
|
Reference in New Issue
Block a user