From 38402f526f802a77ab66663c047262b8744fa51b Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Thu, 20 Oct 2022 19:04:07 +0200 Subject: [PATCH] feat(chalice): fixed get sourcemap from server if not in bucket --- api/chalicelib/core/sourcemaps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/chalicelib/core/sourcemaps.py b/api/chalicelib/core/sourcemaps.py index 4ec973886..12c2bd96a 100644 --- a/api/chalicelib/core/sourcemaps.py +++ b/api/chalicelib/core/sourcemaps.py @@ -89,7 +89,7 @@ def get_traces_group(project_id, payload): file_exists_in_server = False file_url = u["absPath"] key = __get_key(project_id, file_url) # use filename instead? - if file_url and len(file_url) > 0 and not file_url[:file_url.index("?")].endswith(".js"): + if file_url and len(file_url) > 0 and not file_url[:file_url.find("?")].endswith(".js"): print(f"{u['absPath']} sourcemap is not a JS file") payloads[key] = None continue