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

Improve error reporting #25

Open
lubomir opened this issue Mar 29, 2016 · 1 comment
Open

Improve error reporting #25

lubomir opened this issue Mar 29, 2016 · 1 comment

Comments

@lubomir
Copy link
Contributor

lubomir commented Mar 29, 2016

When trying to load a compose with productmd.compose.Compose class, if some file is not found, an AttributeError gets reported. Because of the lazy loading, there is no reliable way to even catch such exceptions.

@lubomir
Copy link
Contributor Author

lubomir commented Jun 30, 2016

Pull request #36 adds explicit exception with a descriptive error message. It is still raised at a random point in time when some attribute of Compose class is first accessed. Changing that would be a bigger effort, as currently there may be people relying on the ability to load only partial data.

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