fix(chalice): fixed sourcemaps URL (#2140)
This commit is contained in:
parent
10affab557
commit
c06620248c
1 changed files with 1 additions and 7 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue