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

pfb_fhir config without a config creates a stack trace. #16

Open
bwalsh opened this issue Aug 16, 2022 · 1 comment
Open

pfb_fhir config without a config creates a stack trace. #16

bwalsh opened this issue Aug 16, 2022 · 1 comment

Comments

@bwalsh
Copy link
Contributor

bwalsh commented Aug 16, 2022

$ pfb_fhir config
Traceback (most recent call last):
File "/Users/walsbr/aced/data_model/venv/bin/pfb_fhir", line 8, in
sys.exit(cli())
File "/Users/walsbr/aced/data_model/venv/lib/python3.9/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/Users/walsbr/aced/data_model/venv/lib/python3.9/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/Users/walsbr/aced/data_model/venv/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/walsbr/aced/data_model/venv/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/walsbr/aced/data_model/venv/lib/python3.9/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/Users/walsbr/aced/data_model/venv/lib/python3.9/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/Users/walsbr/aced/data_model/venv/lib/python3.9/site-packages/pfb_fhir/cli.py", line 213, in config
print(ctx.obj['model'].json())

@bwalsh
Copy link
Contributor Author

bwalsh commented Aug 16, 2022

Also

$ pfb_fhir config --format yaml
Traceback (most recent call last):
File "/Users/walsbr/aced/data_model/venv/bin/pfb_fhir", line 8, in
sys.exit(cli())
File "/Users/walsbr/aced/data_model/venv/lib/python3.9/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/Users/walsbr/aced/data_model/venv/lib/python3.9/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/Users/walsbr/aced/data_model/venv/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/walsbr/aced/data_model/venv/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/walsbr/aced/data_model/venv/lib/python3.9/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/Users/walsbr/aced/data_model/venv/lib/python3.9/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/Users/walsbr/aced/data_model/venv/lib/python3.9/site-packages/pfb_fhir/cli.py", line 211, in config
print(ctx.obj['model'].yaml())
AttributeError: 'Model' object has no attribute 'yaml'

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

No branches or pull requests

1 participant