canonical / testflinger

https://testflinger.readthedocs.io/en/latest/
GNU General Public License v3.0
9 stars 13 forks source link

Nicer handling of job not found on the job details view #295

Open plars opened 5 days ago

plars commented 5 days ago

Description

You won't get there accidentally by clicking, but if you try to go to the job details page for an invalid job_id, you'll get a confusing error response of Unhandled Exception: 'None' has no attribute 'job_data' and it'll hit the server logs as an error because we aren't handling it. This just makes a nicer 404 page for it like we did for the similar situation with agent details

Resolved issues

N/A

Documentation

N/A

Web service API changes

N/A

Tests

Added unit test and also tested locally