Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hooks: matplotlib: assert that mpl_data_dir is not empty
If the statement in exec_statement() fails for whatever reason, mpl_data_dir ends up empty, which in turn cases the current working directory being collected as matplotlib/mpl-data. This leads to difficult-to-debug issues (see confusion around .git directory under #5504), so it's better to just signal the error.
- Loading branch information