From e4821f02cd88344568b45c303d8de5903c8d3fda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Mon, 16 Oct 2023 23:16:41 +0200 Subject: [PATCH] Fix: run checks on the updated headline_hierarchy. --- org_rw/org_rw.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org_rw/org_rw.py b/org_rw/org_rw.py index 5bb205e..2b344eb 100644 --- a/org_rw/org_rw.py +++ b/org_rw/org_rw.py @@ -2104,8 +2104,8 @@ class OrgDocReader: headline_hierarchy.append(headline) if all([hl is not None for hl in headline_hierarchy]): - if not ([ len(hl['orig'].group('stars')) for hl in self.headline_hierarchy ] - == list(range(1, len(self.headline_hierarchy) + 1))): + if not ([ len(hl['orig'].group('stars')) for hl in headline_hierarchy ] + == list(range(1, len(headline_hierarchy) + 1))): raise AssertionError('Error on Headline Hierarchy') else: raise AssertionError('None found on headline hierarchy')