Skip to content

Commit 93cf370

Browse files
author
Niels Ekkelenkamp
committed
fixed error caused by fixing linter stuff
1 parent 383d31f commit 93cf370

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

python_gpt_po/services/translation_service.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,14 +353,13 @@ def process_po_file(
353353
):
354354
"""Processes a single .po file with translations."""
355355
try:
356-
po_file, file_lang = po_file_result
357-
358356
# Only prepare the po_file if not provided (for backward compatibility)
359-
if po_file is None or file_lang is None:
357+
if po_file_result is None:
360358
po_file_result = self._prepare_po_file(po_file_path, languages)
361359
if po_file_result is None:
362360
return
363-
po_file, file_lang = po_file_result
361+
362+
po_file, file_lang = po_file_result
364363

365364
# Get the detailed language name if available
366365
detail_lang = detail_languages.get(file_lang) if detail_languages else None

0 commit comments

Comments
 (0)