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")
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