docs: def do_copy_file(self, args):
          """
          Determine if file should be copied or not and handle exceptions.
          """
          path, prefixed_path, source_storage = args
  
          reset_connection(self.storage)
  
          if self.collectfast_enabled and not self.dry_run:
              try:
                  if not should_copy_file(
                          self.storage, path, prefixed_path, source_storage):
                      return False
              except Exception as e:
                  if settings.debug:
                      raise
                  # Ignore errors and let default collectstatic handle copy
                  self.stdout.write(smart_str(
                      "Ignored error in Collectfast:\n%s\n--> Continuing using "
                      "default collectstatic." % e))
  
          self.num_copied_files += 1
          return super(Command, self).copy_file(
              path, prefixed_path, source_storage)