From c06620248cd2dc95885892d709122e441a5661cc Mon Sep 17 00:00:00 2001 From: Kraiem Taha Yassine Date: Thu, 25 Apr 2024 19:24:04 +0200 Subject: [PATCH] fix(chalice): fixed sourcemaps URL (#2140) --- api/chalicelib/core/sourcemaps_parser.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/api/chalicelib/core/sourcemaps_parser.py b/api/chalicelib/core/sourcemaps_parser.py index 7f88d2e83..8b12967bc 100644 --- a/api/chalicelib/core/sourcemaps_parser.py +++ b/api/chalicelib/core/sourcemaps_parser.py @@ -2,13 +2,7 @@ import requests from decouple import config -SMR_URL = config("sourcemaps_reader") - -if '%s' in SMR_URL: - if config("SMR_KEY", default=None) is not None: - SMR_URL = SMR_URL.format(config("SMR_KEY")) - else: - SMR_URL = SMR_URL.format("smr") +SMR_URL = config("sourcemaps_reader").format(config("SMR_KEY", default="smr")) def get_original_trace(key, positions, is_url=False):