Skip to content

Commit 7b42195

Browse files
author
bosd
committed
Fix syntax error in debugging code\n\n- Remove malformed string concatenation\n- Fix syntax error that was causing 'sanitized_load_lines' is not defined\n- Clean up complex f-string formatting that was causing parse errors\n\nThis fixes the NameError that was preventing proper debugging output.
1 parent 20fac0d commit 7b42195

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/odoo_data_flow/import_threaded.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ def _execute_load_batch( # noqa: C901
693693
log.debug(f"Load header: {load_header}")
694694
log.debug(f"Load lines count: {len(sanitized_load_lines)}")
695695
if sanitized_load_lines:
696-
log.debug(f"First load line (first 10 fields): {sanitized_load_lines[0][:10] if len(sanitized_load_lines[0]) > 10 else sanitized_load_lines[0]}{'...' if len(sanitized_load_lines[0]) > 10 else ''}")
696+
log.debug(f"First load line (first 10 fields): {sanitized_load_lines[0][:10] if len(sanitized_load_lines[0]) > 10 else sanitized_load_lines[0]}")
697697
log.debug(f"Full header: {load_header}")
698698
# Log the full header and first line for debugging
699699
if len(load_header) > 10:

0 commit comments

Comments
 (0)