Skip to content

Server error from api_get_session_materials() when session has no agenda #5877

@jennifer-richards

Description

@jennifer-richards

Describe the issue

The api_get_session_materials() method returns a url for the Session by calling session.agenda().get_href(). If the Session does not yet have an agenda, this causes a server error because agenda() returns None.

Need to check that the front end calling this method can deal with a null there and add a guard before calling get_href().

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions