Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip when no region is set #8

Merged
merged 2 commits into from
Jun 15, 2023
Merged

Skip when no region is set #8

merged 2 commits into from
Jun 15, 2023

Conversation

jnhmcknight
Copy link
Contributor

When in development, Dynaconf does not necessarily need to have credentials sourced, but when loading this extension without credentials, Dynaconf will error out and not proceed past the fact that there are no credentials. I believe this should fail gracefully instead, and skip using this loader.

This outputs the exception, and continues on with Dynaconf loading. Thereby allowing you to know what happened without actually blocking anything.

@jperras
Copy link
Contributor

jperras commented Jun 14, 2023

@jnhmcknight thanks for catching this. I'm going to make a small change to the PR to utilize the silent: bool parameter that is already present and used for other error types in the loader; that will at least make the handling a bit more consistent.

@jperras
Copy link
Contributor

jperras commented Jun 15, 2023

@jnhmcknight I updated the PR. I reworded your commit and force pushed the change so that it follows the Conventional Commits guidelines, so please be aware of this if you pull the branch.

@jperras jperras force-pushed the no-region-handling branch from bdb823c to 90ed00c Compare June 15, 2023 15:54
Makes things a bit more in line with what Dynaconf expects regarding the
use of the ``silent`` parameter. Additionally, we unrolled a large
try/except block that really only needed to cover a single statement.
@jperras jperras force-pushed the no-region-handling branch from 90ed00c to 025319a Compare June 15, 2023 16:21
@jperras jperras merged commit 5e748c3 into main Jun 15, 2023
@jperras jperras deleted the no-region-handling branch June 15, 2023 16:50
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.

2 participants