Compare values not identities
Refactor app2_index to app_cat_index
Fix try except error
Fix try except error
Manage try except for all calls
Add authz for users too
Check for authz in users
Return proper error messages
Remove print method
Custom 500 error page
remove two of the four copies of the return statement
remove two more copies of the return statement
don't misrepresent errors as authorisation failures
no else after return
no else after return
remove one of the two copies of the return statement
remove duplicate line
no else after return
move dangling return
move dangling return