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

Handle all failures when pwd does not exist. #857

Merged
merged 7 commits into from
Jan 31, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make functional test pass.
Signed-off-by: James Tanner <tanner.jc@gmail.com>
  • Loading branch information
jctanner committed Jan 31, 2023
commit f5d84f5dcfd02bf310d4a1fa122d5641cf7a487b
2 changes: 2 additions & 0 deletions dynaconf/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ def import_settings(dotted_path):
module = importlib.import_module(module)
except ImportError as e:
raise click.UsageError(e)
except FileNotFoundError:
return
try:
return getattr(module, name)
except AttributeError as e:
Expand Down