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

[Fix] Update save_provenance function to avoid error when not capturing provenance #11

Merged
merged 3 commits into from
Aug 2, 2023

Conversation

kohlerca
Copy link
Collaborator

@kohlerca kohlerca commented Aug 2, 2023

If the save_provenance function is called when provenance capture was not activated, an exception will be generated, as no information describing the script will be present.

This PR modifies the function not to attempt to serialize the provenance information if the script information is unavailable. A unit test was added to check for this behavior.

@kohlerca kohlerca added the bugfix Fix for an identified bug label Aug 2, 2023
@kohlerca kohlerca merged commit 582d10e into main Aug 2, 2023
@kohlerca kohlerca deleted the fix/save_no_capture branch August 2, 2023 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fix for an identified bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant