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

Use Cantera Error in leftover examples #596

Merged
merged 1 commit into from
Feb 18, 2019

Conversation

CyberDrudge
Copy link
Contributor

Fixes #569
Implemented use of CanteraError in examples diffusion_flame_extinction.py and diffusion_flame_batch.py

Copy link
Member

@bryanwweber bryanwweber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @CyberDrudge I restarted the failing build because I think it was a problem with the CodeCov service, not with anything you did here. A few changes below!

@CyberDrudge
Copy link
Contributor Author

I applied the suggested changes and squashed the commits.

Update diffusion_flame_batch.py and diffusion_flame_extinction.py
to use CanteraError where appropriate. Define a new
FlameExtinguished exception to distinguish between extinction and
other failures. This allows things like OSErrors to still be
raised to the user while dealing with exceptions we can handle.
Closes Cantera#569.
@bryanwweber bryanwweber merged commit aa9721d into Cantera:master Feb 18, 2019
@CyberDrudge CyberDrudge deleted the updateExceptions branch February 18, 2019 18:46
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