remove sys.exc_clear

This commit is contained in:
dessant 2014-06-10 11:52:45 +03:00
parent 4a565737b3
commit a64d77fb7d
1 changed files with 1 additions and 4 deletions

View File

@ -876,10 +876,7 @@ class ParserException(Exception):
self.filename, self.line + 1, sc, message)
if cause:
message += '\n' + ''.join(traceback.format_tb(cause))
try:
sys.exc_clear()
except:
pass
super(ParserException, self).__init__(message)