Simplifies code and improves error handling
Refactors code for clarity and conciseness by removing unused variables. Improves error handling by logging only the necessary information, making debugging easier.
This commit is contained in:
3 files changed
+3
-3
No files matched your search
@@ -67,7 +67,7 @@ class IndexGenerator:
|
||||
current_letter = ""
|
||||
|
||||
for individual in sorted_individuals:
|
||||
first, last = individual.get_names()
|
||||
_, last = individual.get_names()
|
||||
|
||||
# Write letter header if changed
|
||||
if last:
|
||||
|
||||
@@ -485,7 +485,7 @@ class MarkdownGenerator:
|
||||
paths.append(path)
|
||||
except Exception as e:
|
||||
logger.exception(
|
||||
f"Failed to generate note for {individual.get_full_name()}: {e}"
|
||||
f"Failed to generate note for {individual.get_full_name()}"
|
||||
)
|
||||
|
||||
logger.info(f"Successfully generated {len(paths)} notes")
|
||||
|
||||
Reference in new issue
Block a user