Closed
Bug 1558465
Opened 5 years ago
Closed 5 years ago
[sync] Do not break sync if compare-locale parser not found
Categories
(Webtools Graveyard :: Pontoon, defect, P1)
Webtools Graveyard
Pontoon
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mathjazz, Assigned: mathjazz)
Details
Attachments
(1 file)
Sync is broken for Seamonkey after we enabled a new locale (nl - Dutch). Enabling a new locale resulted in detecting all localizable files as changed. Since Pontoon only uses file extensions to detect localizable files, one of the detected files is suite/searchplugins/google.xml
.
When we try to parse it, compare-locales parser throws an error, because it cannot find the correct parse for the file (it requires XML files to be called strings.xml
). That breaks sync. Instead, we should fail gracefully and just skip the file.
Traceback:
at line 365, /app/pontoon/sync/vcs/models.py,
resources[path] = VCSResource(self, path, locales=locales)
at line 614, /app/pontoon/sync/vcs/models.py,
locale=Locale.objects.get(code='en-US')
at line 54, /app/pontoon/sync/formats/__init__.py,
return SUPPORTED_FORMAT_PARSERS[extension](path, source_path=source_path, locale=locale)
at line 122, /app/pontoon/sync/formats/compare_locales.py,
return CompareLocalesResource(path, source_resource)
at line 45, /app/pontoon/sync/formats/compare_locales.py,
self.parser = parser.getParser(self.path)
at line 57, /app/.heroku/python/lib/python2.7/site-packages/compare_locales/parser/__init__.py,
raise UserWarning("Cannot find Parser")
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Updated•3 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•