Fix py3 compat issue

sys.exc_clear was removed in Python 3.
remove sys.exc_clear
Merge pull request #2245 from dessant/patch-6

Fix py3 compat issue