Source

crash / crash.py

Full commit
"""Crash suppression context manager in Windows.


Usage:

    try:
        with crash.suppression:
           dangerously_crashy_function()
           print "I get printed even if dangerously_crashy_function crashed"
        print "I will only print if there was no error in the with block"
    except MemoryError:
        print "There was a crash in this context."
"""

from _wincrash import suppression