Skip to content

Commit

Permalink
Merge pull request #11462 from camptocamp/fix-autentication-error
Browse files Browse the repository at this point in the history
Better error message
  • Loading branch information
sbrunner authored Oct 21, 2024
2 parents 8a54d8a + 2395cbc commit a08218c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geoportal/c2cgeoportal_geoportal/lib/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def unauthenticated_userid(self, request: pyramid.request.Request) -> str | None
request.response.headerlist.extend(headers)
return cast(str, auth["u"])

except Exception as e: # pylint: disable=broad-exception-caught
_LOG.error("URL login error: %s.", e, exc_info=True)
except Exception: # pylint: disable=broad-exception-caught
_LOG.exception("URL login error on auth '%s'.", auth_enc)

return None

Expand Down

0 comments on commit a08218c

Please sign in to comment.