Skip to content
Snippets Groups Projects
Commit 9a5f229f authored by Ben Hearsum's avatar Ben Hearsum
Browse files

Bug 1881272: ignore rare, recoverable error condition during l10n repack r=eemeli

parent 3a8311cb
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@ import mozpack.path as mozpath
import mozversioncontrol
import requests
from fluent.syntax.parser import FluentParser
from hglib.error import ServerError
from mozpack.chrome.manifest import Manifest, ManifestLocale, parse_manifest
from redo import retry
......@@ -118,7 +119,16 @@ def get_dt_from_hg(path):
def get_timestamp_for_locale(path):
dt = None
if os.path.isdir(os.path.join(path, ".hg")):
dt = get_dt_from_hg(path)
dt = None
# This can be removed once we're no longer repacking from hg l10n repos.
try:
dt = get_dt_from_hg(path)
except ServerError as se:
# This rare condition can happen if we try to repack from a
# git l10n repository after having already repacked from an
# hg l10n repository on the same machine.
if "sharedpath points to nonexistent directory" not in str(se):
raise se
if dt is None:
dt = get_build_date()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment