code: def display_error(func):
      
      @wraps(func)
      def wrapper(*args, **kwargs):
          try:
              return func(*args, **kwargs)
          except wandb.Error as e:
              exc_type, exc_value, exc_traceback = sys.exc_info()
              lines = traceback.format_exception(
                  exc_type, exc_value, exc_traceback)
              logger.error(''.join(lines))
              click_exc = ClickWandbException(e)
              click_exc.orig_type = exc_type
              six.reraise(ClickWandbException, click_exc, sys.exc_info()[2])
      return wrapper
docs: Function decorator for catching common errors and re-raising as wandb.Error