Skip to content

Conversation

@AdityaTaggar05
Copy link

Initially, using an 'and' clause raised a TypeError when passing in a non-subscriptable data type; hence, the desired Exception was not raised. Due to the usage of 'or' clause in other '.from_' methods, it only checked the datatype and did not check the subscriptable nature, and raised the correct Exception. The image below demonstrates it.

Image

@AdityaTaggar05 AdityaTaggar05 changed the title Fixed error handling in MetabolicNetowkr.from_sbml Fixed error handling in MetabolicNetwork.from_sbml Mar 22, 2025
@vfisikop vfisikop requested a review from hariszaf April 4, 2025 07:56
Copy link

@vfisikop vfisikop left a comment

Choose a reason for hiding this comment

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

Thanks! Would you like to also add some tests for those exceptions?

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