Gracefully handle missing DOG_NAMES and OMDB_API environment variables to prevent registration failures and OMDb-related errors.
If DOG_NAMES is not configured, user registration now bypasses the 'dog name' check instead of always failing. For OMDB_API, adding movies proceeds with placeholders if the key is missing, and refreshing OMDb data returns a 503 error, preventing invalid external API calls and improving error handling.
Gracefully handle missing `DOG_NAMES` and `OMDB_API` environment variables to prevent registration failures and OMDb-related errors.
If `DOG_NAMES` is not configured, user registration now bypasses the 'dog name' check instead of always failing. For `OMDB_API`, adding movies proceeds with placeholders if the key is missing, and refreshing OMDb data returns a 503 error, preventing invalid external API calls and improving error handling.
---
<a href="https://cursor.com/background-agent?bcId=bc-bc6ca869-298b-4b03-8dbb-3cb202640052"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-cursor-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-cursor-light.svg"><img alt="Open in Cursor" src="https://cursor.com/open-in-cursor.svg"></picture></a> <a href="https://cursor.com/agents?id=bc-bc6ca869-298b-4b03-8dbb-3cb202640052"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-web-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-web-light.svg"><img alt="Open in Web" src="https://cursor.com/open-in-web.svg"></picture></a>
Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch. Learn more about Cursor Agents
Cursor Agent can help with this pull request. Just `@cursor` in comments and I'll start working on changes in this branch.
<sub>[Learn more](https://cursor.com/docs/background-agent/web-and-mobile) about Cursor Agents</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Gracefully handle missing
DOG_NAMESandOMDB_APIenvironment variables to prevent registration failures and OMDb-related errors.If
DOG_NAMESis not configured, user registration now bypasses the 'dog name' check instead of always failing. ForOMDB_API, adding movies proceeds with placeholders if the key is missing, and refreshing OMDb data returns a 503 error, preventing invalid external API calls and improving error handling.Cursor Agent can help with this pull request. Just
@cursorin comments and I'll start working on changes in this branch.Learn more about Cursor Agents