code: def sentry_reraise(exc):
      
      sentry_exc(exc)
      # this will messily add this "reraise" function to the stack trace
      # but hopefully it's not too bad
      six.reraise(type(exc), exc, sys.exc_info()[2])
docs: Re-raise an exception after logging it to Sentry
  
      Use this for top-level exceptions when you want the user to see the traceback.
  
      Must be called from within an exception handler.