related to #9274, another place needs exception handling
Merge pull request #9432 from Cofyc/fix_exception_handling_in_ps

related to #9274, another place needs exception handling