code: def get_current_traceback(ignore_system_exceptions=False):
      
      exc_type, exc_value, tb = sys.exc_info()
      if ignore_system_exceptions and exc_type in system_exceptions:
          raise
      return Traceback(exc_type, exc_value, tb)
docs: Get the current exception info as `Traceback` object.  Per default
      calling this method will reraise system exceptions such as generator exit,
      system exit or others.  This behavior can be disabled by passing `False`
      to the function as first parameter.