From 9ef444fa8134ea210790e23474d2ae518e9d0708 Mon Sep 17 00:00:00 2001 From: DeltaDaniel <139119540+DeltaDaniel@users.noreply.github.com> Date: Mon, 27 Jan 2025 14:38:36 +0100 Subject: [PATCH] bug fix --- src/ebd_toolchain/main.py | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/ebd_toolchain/main.py b/src/ebd_toolchain/main.py index d84c61a..619e89e 100644 --- a/src/ebd_toolchain/main.py +++ b/src/ebd_toolchain/main.py @@ -185,22 +185,22 @@ def handle_known_error(error: Exception, ebd_key: str) -> None: if "puml" in export_types: if not any(ebd_table.rows): click.secho(f"EBD {ebd_key} has no ebd table; Skip puml creation!", fg="yellow") - continue - try: - puml_path = output_path / Path(f"{ebd_key}.puml") - _dump_puml(puml_path, ebd_graph) - click.secho(f"💾 Successfully exported '{ebd_key}.puml' to {puml_path.absolute()}") - except AssertionError as assertion_error: - # https://github.com/Hochfrequenz/rebdhuhn/issues/35 - click.secho(str(assertion_error), fg="red") - except ( - NotExactlyTwoOutgoingEdgesError, - GraphTooComplexForPlantumlError, - KrokiPlantUmlBadRequestError, - ) as known_issue: - handle_known_error(known_issue, ebd_key) - except Exception as general_error: # pylint:disable=broad-exception-caught - click.secho(f"Error while exporting {ebd_key} as UML: {str(general_error)}; Skip!", fg="yellow") + else: + try: + puml_path = output_path / Path(f"{ebd_key}.puml") + _dump_puml(puml_path, ebd_graph) + click.secho(f"💾 Successfully exported '{ebd_key}.puml' to {puml_path.absolute()}") + except AssertionError as assertion_error: + # https://github.com/Hochfrequenz/rebdhuhn/issues/35 + click.secho(str(assertion_error), fg="red") + except ( + NotExactlyTwoOutgoingEdgesError, + GraphTooComplexForPlantumlError, + KrokiPlantUmlBadRequestError, + ) as known_issue: + handle_known_error(known_issue, ebd_key) + except Exception as general_error: # pylint:disable=broad-exception-caught + click.secho(f"Error while exporting {ebd_key} as UML: {str(general_error)}; Skip!", fg="yellow") try: if "dot" in export_types: