Bug 1755362 - Skip fetching source of missing revisions. r=dom-storage-reviewers,jstutte

Differential Revision: https://phabricator.services.mozilla.com/D138803
This commit is contained in:
Jan Rio Krause 2022-02-15 17:08:49 +00:00
parent 2f5e29730a
commit 090d5af86a

View File

@ -9,8 +9,12 @@ cached_functions = {}
def getMetricsJson(src_url):
print("Fetching source for function extraction: {}".format(src_url))
metrics = subprocess.check_output(["./fetch_fn_names.sh", src_url])
if src_url.startswith("http"):
print("Fetching source for function extraction: {}".format(src_url))
metrics = subprocess.check_output(["./fetch_fn_names.sh", src_url])
else:
print("Skip fetching source: {}".format(src_url))
metrics = ""
try:
return json.loads(metrics)