simplify library
Revert "useless catch"

This reverts commit 92a468f087a1c21c0f565328f20b85359f83c767.