Skip to content

Conversation

@NinjaCheetah
Copy link

@NinjaCheetah NinjaCheetah commented Feb 2, 2026

ldap_get_member() returns a BadQueryError whenever getting a user's information fails, and currently this goes uncaught in the /user/<uid> and /image/<uid>. Flask already handles an uncaught BadQueryError by presenting a 404 page, but the exception is still throw out into the console.

This PR just makes it so those endpoints will catch a BadQueryError and return the 404 page directly, rather than letting it go uncaught and having it fall back onto Flask to handle it. (Fix for #249)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant