          logger.trace("Current cache size: %s", len(self.cache))
  
      def close(self) -> None:
          """ Close the GIF writer on completion. """
          self._writer.close()
 
</s> remove         logger.trace("Current cache size: %s", len(self.cache))
 </s> add         logger.trace("Current cache size: %s", len(self.cache))  # type: ignore </s> remove         self._writer.close()
 </s> add         if self._writer is not None:
            self._writer.close() </s> remove         logger.trace("Current cache size: %s", len(self.cache))
 </s> add         logger.trace("Current cache size: %s", len(self.cache))  # type: ignore </s> remove             logger.trace("Rendering from cache. Frame no: %s", save_no)
 </s> add             logger.trace("Rendering from cache. Frame no: %s", save_no)  # type: ignore </s> remove             logger.trace("Rendering from cache. Frame no: %s", save_no)
 </s> add             logger.trace("Rendering from cache. Frame no: %s", save_no)  # type: ignore
        if self._writer is not None:
            self._writer.close()
          logger.trace("Current cache size: %s", len(self.cache))
  
      def close(self) -> None:
          """ Close the GIF writer on completion. """
        if self._writer is not None:
            self._writer.close()
keep keep keep keep replace
 Bugfix: convert - Gif Writer
  - Fix non-launch error on Gif Writer
  - convert plugins - linting
  - convert/fs_media/preview/queue_manager - typing
  - Change convert items from dict to Dataclass 
plugins/convert/writer/gif.py