fix(chalice): fixed sourcemaps URL (#2140)

This commit is contained in:
Kraiem Taha Yassine 2024-04-25 19:24:04 +02:00 committed by GitHub
parent 10affab557
commit c06620248c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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):