Fully automatic censorship removal for language models
fix: resolve variable shadowing of error in ValidationError handler (#356)
UmranProsa3dbfd21e692
diff --git a/src/heretic/main.py b/src/heretic/main.pyindex baada1e..ffe0748 100644--- a/src/heretic/main.py+++ b/src/heretic/main.py@@ -195,8 +195,10 @@ def run():except ValidationError as error:print(f"[red]Configuration contains [bold]{error.error_count()}[/] errors:[/]")- for error in error.errors():- print(f"[bold]{error['loc'][0]}[/]: [yellow]{error['msg']}[/]")+ for error_detail in error.errors():+ print(+ f"[bold]{error_detail['loc'][0]}[/]: [yellow]{error_detail['msg']}[/]"+ )print()print(