docs: def exception(self, exception):
          """Prints the stacktrace of the given exception."""
          if self.writelog:
              self.logger.exception(exception)
          if self.verbose:
              for line in  traceback.format_exception(
                      None, exception, exception.__traceback__):
                  print(line, end='', file=sys.stderr, flush=True)