From 3b5991c81c3c5170fa89b9b4b1e1f19770cf9f0f Mon Sep 17 00:00:00 2001 From: Alexander Kucera Date: Sun, 2 Nov 2025 17:44:50 +0100 Subject: [PATCH] Simplifies exception handling Removes unnecessary variable assignments in exception handlers. This improves code readability and maintainability by reducing redundancy without impacting functionality. --- src/main.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.py b/src/main.py index 0589d67..dacef58 100755 --- a/src/main.py +++ b/src/main.py @@ -232,14 +232,14 @@ def convert_gedcom_to_markdown( logger.info("Conversion completed successfully") return 0 - except FileNotFoundError as e: - logger.exception(f"File not found") + except FileNotFoundError: + logger.exception("File not found") return 1 - except ValueError as e: - logger.exception(f"Invalid input") + except ValueError: + logger.exception("Invalid input") return 1 - except Exception as e: - logger.exception(f"Unexpected error") + except Exception: + logger.exception("Unexpected error") return 1