[backport] [CI] Fix CI with updated dependencies. (#8631) (#8635)

This commit is contained in:
Jiaming Yuan
2023-01-05 19:10:58 +08:00
committed by GitHub
parent 62ed8b5fef
commit 575fba651b
2 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ import pytest
try:
import shap
except ImportError:
except Exception:
shap = None
pass