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

Fixing erroneous error in Python module format loader, when explicit path is specified #616

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

luketpeterson
Copy link
Contributor

When I designed the FsModuleFormat trait, I imagined it would always generate its own filesystem paths, so I didn't validate them in the try_path method. However I later changed it so the user can supply explicit paths, e.g. through the register-module! operation.

So I added the necessary validation code so that the python format loader doesn't try (and fail) to load a non-python module.

@luketpeterson luketpeterson requested a review from vsbogd March 12, 2024 01:13
@vsbogd vsbogd merged commit 1d2bc51 into trueagi-io:main Mar 12, 2024
2 checks passed
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