Commit 090d5af8 authored by Jan Rio Krause's avatar Jan Rio Krause
Browse files

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

parent 2f5e2973
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -9,8 +9,12 @@ cached_functions = {}


def getMetricsJson(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)