code: def threaded(system, func, *args, **kwargs):
      
      @wraps(func)
      def wrapper(*args, **kwargs):
          try:
              return func(*args, **kwargs)
          except Exception as e:
              if system.raven_client:
                  system.raven_client.captureException()
              logger.exception('Exception occurred in thread: %s', e)
              return False
  
      return lambda: wrapper(*args, **kwargs)
docs: uses thread_init as a decorator-style