In the snippet above, changing 'except NotFound' to 'except' was enough to fix the error in my testing.
In the snippet above, changing 'except NotFound' to 'except' was enough to fix the error in my testing.