Handle ValueError from `get_parser` in the command line tool rather than the library
In libmat2/parser_factory.py
, the ValueError
from the AbstractParser
constructor is handled in the get_parser
method, and prints out an error message.
However, applications relying on the library don't get a chance to handle the error themselves to present the information to the user, and instead believe the file is simply unsupported.
Should this exception handler be moved to the command line tool? That should be a pretty trivial change, I can take care of it if you agree.