Skip to content

Fix code quality issues: exception handling and CORS configuration#112

Open
aydnOktay wants to merge 1 commit intoOpenGradient:mainfrom
aydnOktay:fix/code-quality-improvements
Open

Fix code quality issues: exception handling and CORS configuration#112
aydnOktay wants to merge 1 commit intoOpenGradient:mainfrom
aydnOktay:fix/code-quality-improvements

Conversation

@aydnOktay
Copy link

This PR improves code quality by removing unnecessary exception handling, cleaning up unused variables, and fixing CORS configuration. The redundant try-except block in service.py that only re-raised exceptions has been removed, unused exception variables in auth.py have been cleaned up, and CORS configuration has been fixed to properly handle localhost ports and Vercel preview deployments since FastAPI CORSMiddleware doesn't support regex patterns.

…ORS configuration

- Remove redundant try-except block in service.py that only re-raised exceptions
- Remove unused exception variables in auth.py exception handlers
- Fix CORS configuration: FastAPI CORSMiddleware doesn't support regex patterns, so list all localhost ports explicitly and add custom middleware for Vercel preview deployments
- Add proper docstring to verify_solana_signature function
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