mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Clear exception information in Python 2 (PY-21215)
It's needed for example for celery's retry for task. The fix suggested by Krzysztof Nazarewski.
This commit is contained in:
@@ -1544,7 +1544,11 @@ if __name__ == '__main__':
|
||||
from _pydevd_bundle import pydevd_stackless
|
||||
pydevd_stackless.patch_stackless()
|
||||
except:
|
||||
pass # It's ok not having stackless there...
|
||||
# It's ok not having stackless there...
|
||||
try:
|
||||
sys.exc_clear() # the exception information should be cleaned in Python 2
|
||||
except:
|
||||
pass
|
||||
|
||||
is_module = setup['module']
|
||||
patch_stdin(debugger)
|
||||
|
||||
Reference in New Issue
Block a user