try to write a test case to test if that error is thrown and I think you will find that Package.get_by_project_and_name throws 404