500 Error when accessing works/collected for a user that does not exist

Description

If you try to go to the Works in Collections page for a user that does not exist, e.g. https://test.ao3.org/users/IMNOTREAL/works/collected, you get a 500 error.

You should get a 404 instead.

Environment

None

Assignee

Unassigned

Reporter

Sarken

Roadmap

Users
Works

Priority

Low

Affects versions

Fix versions

None

Components

BackEnd

Difficulty

Medium

Required Access Level

None

Milestone

Internal 0.9
Configure