Checking if exceptions module can be imported as it's removed from Python3
Merge pull request #18084 from nmadhok/patch-1

Checking if exceptions module can be imported as it's removed from Python3