def signal_restore(self):
    'Restore default signal handler, ignoring errors silently.'
    try:
        super().signal_restore()
    except ValueError:
        pass
Restore default signal handler, ignoring errors silently.
def signal_restore(self):
    
    try:
        super().signal_restore()
    except ValueError:
        pass