Skip to content

Commit

Permalink
Account for missing resource from previous sync implementation (#3535)
Browse files Browse the repository at this point in the history
  • Loading branch information
eemeli authored Jan 20, 2025
1 parent 638ae4f commit e948db0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pontoon/sync/core/translations_from_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,9 @@ def find_db_updates(
return None

log.debug(f"[{project.slug}] Compiling updates...")
trans_res = {resources[db_path] for db_path, _, _ in translations}
trans_res = {
resources[db_path] for db_path, _, _ in translations if db_path in resources
}
entities: dict[tuple[str, str], int] = {
(e["resource__path"], e["key"] or e["string"]): e["id"]
for e in Entity.objects.filter(resource__in=trans_res, obsolete=False)
Expand Down

0 comments on commit e948db0

Please sign in to comment.