mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
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:
parent
2f5e29730a
commit
090d5af86a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user