[BUG] function j_loader
does not properly raise when input file non-existing and not with expected extension name
#4490
Labels
Bug summary
If the file is not found, it will raise TypeError, but this is not the expected behavior: in this case, should raise FileNotFoundError instead.
DeePMD-kit Version
devel
Backend and its version
any
How did you download the software?
Built from source
Input Files, Running Commands, Error Log, etc.
no
Steps to Reproduce
can be easily trigger the inappropriate raise if run deepmd-kit like
Further Information, Files, and Links
No response
The text was updated successfully, but these errors were encountered: