code: def main(self, *args, **kwargs):
          
          try:
              result = super().main(*args, **kwargs)
              return result
          except Exception:
              if HAS_SENTRY:
                  self._handle_sentry()
  
              if not (sys.stdin.isatty() and sys.stdout.isatty()):
                  raise
  
              self._handle_github()
docs: Catch all exceptions.