Skip to content

Commit

Permalink
fix(auto-translate): make component setting really optional
Browse files Browse the repository at this point in the history
It is optional in the form, but the task fails if not present.

See WeblateOrg#13471
  • Loading branch information
nijel committed Jan 22, 2025
1 parent c23ac18 commit fd2f496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weblate/trans/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ def auto_translate_component(
auto_source: str,
engines: list[str],
threshold: int,
component: int | None,
component: int | None = None,
):
component_obj = Component.objects.get(pk=component_id)

Expand Down

0 comments on commit fd2f496

Please sign in to comment.