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

BUG: A blank ~/.atomate2.yaml file causes a crash #499

Closed
Andrew-S-Rosen opened this issue Aug 30, 2023 · 1 comment · Fixed by #522
Closed

BUG: A blank ~/.atomate2.yaml file causes a crash #499

Andrew-S-Rosen opened this issue Aug 30, 2023 · 1 comment · Fixed by #522

Comments

@Andrew-S-Rosen
Copy link
Member

Andrew-S-Rosen commented Aug 30, 2023

If the user has a ~/.atomate2.yaml file and it's blank, the following error is raised:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rosen/software/miniconda/envs/quacc/lib/python3.10/site-packages/atomate2/__init__.py", line 6, in <module>
    SETTINGS = Atomate2Settings()
  File "pydantic/env_settings.py", line 39, in pydantic.env_settings.BaseSettings.__init__
  File "pydantic/main.py", line 342, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for Atomate2Settings
__root__
  'NoneType' object is not iterable (type=type_error)
@Andrew-S-Rosen
Copy link
Member Author

Linking to materialsproject/jobflow#411.

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 a pull request may close this issue.

1 participant