Simplifies exception handling

Removes unnecessary variable assignments in exception handlers.

This improves code readability and maintainability by reducing
redundancy without impacting functionality.
This commit is contained in:
AlexKucera committed 2025-11-02 17:44:50 +01:00
1 parent c177211359
commit 3b5991c81c
1 file changed
+6 -6
+6 -6
View File
@@ -232,14 +232,14 @@ def convert_gedcom_to_markdown(
logger.info("Conversion completed successfully") logger.info("Conversion completed successfully")
return 0 return 0
except FileNotFoundError as e: except FileNotFoundError:
logger.exception(f"File not found") logger.exception("File not found")
return 1 return 1
except ValueError as e: except ValueError:
logger.exception(f"Invalid input") logger.exception("Invalid input")
return 1 return 1
except Exception as e: except Exception:
logger.exception(f"Unexpected error") logger.exception("Unexpected error")
return 1 return 1