https://github.com/apache/airflow/blob/main/airflow/dag_processing/manager.py#L773
self.log.exception("Error removing old import errors")
            
            
            
            dag_filelocs = []
            for fileloc in self._file_paths:
                if not fileloc.endswith(".py") and zipfile.is_zipfile(fileloc):
                    try:
                        with zipfile.ZipFile(fileloc) as z:
                            dag_filelocs.extend(
                                [
                                    os.path.join(fileloc, info.filename)
                                    for info in z.infolist()
                                    if might_contain_dag(info.filename, True, z)
                                ]
                            )
                    except zipfile.BadZipFile as err:
                        self.log.error("There was an err accessing %s, %s", fileloc, err)
                else:
                    dag_filelocs.append(fileloc)
            SerializedDagModel.remove_deleted_dags(
                alive_dag_filelocs=dag_filelocs,
                processor_subdir=self.get_dag_directory(),
            )
            DagModel.deactivate_deleted_dags(self._file_paths)
            from airflow.models.dagcode import DagCode
            DagCode.remove_deleted_code(dag_filelocs)
            return True
        return False
    def _print_stat(self):