refactor: optimize exception handling order in PassportService
- Reorder exception handling to catch ExpiredSignatureError first for better error clarity - Add PyJWTError as catch-all for unhandled JWT exceptions - Update tests to reflect new exception handling behavior - Add test case for generic PyJWTError handling This improvement was discovered while writing comprehensive unit tests for PassportService. The change follows Python best practices by catching more specific exceptions before general ones and ensures all JWT-related errors are properly handled.pull/22268/head
parent
d7d99feb4f
commit
05659d536e
Loading…
Reference in New Issue