From fe96f2cc97873ed3817c29ddef1f7407001e4e59 Mon Sep 17 00:00:00 2001 From: hf-ddernbach Date: Wed, 13 Sep 2023 19:17:41 +0200 Subject: [PATCH 1/3] added errorhandling from ebdtable2graph for ambiguous outcome codes->A** --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 6490b29..3824993 100644 --- a/main.py +++ b/main.py @@ -23,6 +23,7 @@ EndeInWrongColumnError, NotExactlyTwoOutgoingEdgesError, PathsNotGreaterThanOneError, + OutcomeCodeAmbiguousError, ) from ebdtable2graph.plantuml import GraphTooComplexForPlantumlError @@ -122,7 +123,7 @@ def handle_known_error(error: Exception, ebd_key: str) -> None: click.secho(f"💾 Successfully exported '{ebd_key}.json'") try: ebd_graph = convert_table_to_graph(ebd_table) - except (EbdCrossReferenceNotSupportedError, EndeInWrongColumnError) as known_issue: + except (EbdCrossReferenceNotSupportedError, EndeInWrongColumnError, OutcomeCodeAmbiguousError) as known_issue: handle_known_error(known_issue, ebd_key) continue except Exception as unknown_error: # pylint:disable=broad-except From 3bb16e3af02d2b46287f73a117d0c421ca21ecb5 Mon Sep 17 00:00:00 2001 From: hf-ddernbach Date: Mon, 18 Sep 2023 14:35:15 +0200 Subject: [PATCH 2/3] bump ebdtable2graph from 0.1.16 to 0.1.19 --- pyproject.toml | 2 +- requirements.in | 2 +- requirements.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8f9a515..e56181d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ classifiers = [ "Programming Language :: Python :: 3.11", ] dependencies = [ - "ebdtable2graph>=0.1.18", + "ebdtable2graph>=0.1.19", "python-docx", "more_itertools", "attrs", diff --git a/requirements.in b/requirements.in index df59ef8..38d9db3 100644 --- a/requirements.in +++ b/requirements.in @@ -1,4 +1,4 @@ -ebdtable2graph>=0.1.18 +ebdtable2graph>=0.1.19 python-docx more_itertools attrs diff --git a/requirements.txt b/requirements.txt index 498cf06..bbda981 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,7 +17,7 @@ charset-normalizer==2.1.1 # via requests click==8.1.7 # via -r requirements.in -ebdtable2graph==0.1.18 +ebdtable2graph==0.1.19 # via -r requirements.in idna==3.4 # via requests From 3b55cee253ab6fdf14b05cc9ebe4eb6cb1a42d58 Mon Sep 17 00:00:00 2001 From: hf-ddernbach Date: Mon, 18 Sep 2023 14:38:30 +0200 Subject: [PATCH 3/3] bump ebdtable2graph from 0.1.18 to 0.1.19 --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 3824993..dc09da5 100644 --- a/main.py +++ b/main.py @@ -22,8 +22,8 @@ EbdCrossReferenceNotSupportedError, EndeInWrongColumnError, NotExactlyTwoOutgoingEdgesError, - PathsNotGreaterThanOneError, OutcomeCodeAmbiguousError, + PathsNotGreaterThanOneError, ) from ebdtable2graph.plantuml import GraphTooComplexForPlantumlError