Skip to content

Commit

Permalink
fixing potential bug (#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
LawyZheng authored Aug 9, 2024
1 parent 6c0f94a commit 7b58a1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skyvern/webeye/scraper/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ async def get_incremental_elements_num(self) -> int:
js_script = "() => window.globalOneTimeIncrementElements.length"
return await self.skyvern_frame.get_frame().evaluate(js_script)

def build_html_tree(self, element_tree: list[dict] = []) -> str:
def build_html_tree(self, element_tree: list[dict] | None = None) -> str:
return "".join([json_to_html(element) for element in (element_tree or self.element_tree_trimmed)])


Expand Down

0 comments on commit 7b58a1f

Please sign in to comment.