langchain
3c4f32c8 - Replacing Exception type from ValueError to ImportError (#9588)

Commit
2 years ago
Replacing Exception type from ValueError to ImportError (#9588) I have restructured the code to ensure uniform handling of ImportError. In place of previously used ValueError, I've adopted the standard practice of raising ImportError with explanatory messages. This modification enhances code readability and clarifies that any problems stem from module importation. @eyurtsev , @baskaryan Thanks
Author
Parents
Loading