Revert "[fx][pass] Fix type of exception (#84094)"
This reverts commit eb2fa2e042b18ba35fa6eedb769c2efe411dbcfb.
Reverted https://github.com/pytorch/pytorch/pull/84094 on behalf of https://github.com/facebook-github-bot due to Diff reverted internally