Skip to content

Commit c008226

Browse files
authored
Merge pull request #290 from SmartAPI/fix-uptime
fix: cast url as str
2 parents 2105c14 + ba53b66 commit c008226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/monitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def make_api_call(self):
295295
if "example" in _param:
296296
# parameter in path
297297
if _param["in"] == "path":
298-
url = url.replace("{" + _param["name"] + "}", str(_param["example"]))
298+
url = str(url).replace("{" + _param["name"] + "}", str(_param["example"]))
299299
# parameter in query
300300
elif _param["in"] == "query":
301301
params[_param["name"]] = _param["example"]

0 commit comments

Comments
 (0)