Skip to content

Commit

Permalink
check if featured project exists before calling current_access
Browse files Browse the repository at this point in the history
  • Loading branch information
Bibhas committed Jun 17, 2019
1 parent 3e90323 commit 4e65ce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion funnel/views/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def view(self):
'upcoming_projects': [p.current_access() for p in upcoming_projects],
'open_cfp_projects': [p.current_access() for p in open_cfp_projects],
'draft_projects': [p.current_access() for p in draft_projects],
'featured_project': featured_project.current_access()
'featured_project': featured_project.current_access() if featured_project else None
}

@route('json')
Expand Down

0 comments on commit 4e65ce6

Please sign in to comment.