Skip to content

Instantly share code, notes, and snippets.

@ionelmc
Created January 31, 2013 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ionelmc/4684698 to your computer and use it in GitHub Desktop.
Save ionelmc/4684698 to your computer and use it in GitHub Desktop.
billiard.common.restart_state _run_silenced monkey patch
from billiard.common import restart_state
def _run_silenced(self, func):
import logging
try:
return func(self)
except Exception:
logging.exception("Shit has hit the fan in %r", func)
restart_state.step = lambda self, func=restart_state.step: _run_silenced(self, func)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment