Fix py3 compat issue

sys.exc_clear was removed in Python 3.