remove exc_info from LOG.exception (#246)
This commit is contained in:
@@ -228,7 +228,9 @@ async def handle_download_file_action(
|
||||
await download.save_as(full_file_path)
|
||||
except Exception as e:
|
||||
LOG.exception(
|
||||
"DownloadFileAction: Failed to download file", action=action, full_file_path=full_file_path, exc_info=True
|
||||
"DownloadFileAction: Failed to download file",
|
||||
action=action,
|
||||
full_file_path=full_file_path,
|
||||
)
|
||||
return [ActionFailure(e)]
|
||||
|
||||
@@ -363,7 +365,7 @@ async def handle_select_option_action(
|
||||
if action.option.index is not None:
|
||||
LOG.warning(
|
||||
"Failed to click on the option by label, trying by index",
|
||||
exc_info=e,
|
||||
exc_info=True,
|
||||
action=action,
|
||||
xpath=xpath,
|
||||
)
|
||||
@@ -667,7 +669,7 @@ async def click_sibling_of_input(
|
||||
interacted_with_sibling=True,
|
||||
)
|
||||
except Exception as e:
|
||||
LOG.warning("Failed to click sibling label of input element", exc_info=e)
|
||||
LOG.warning("Failed to click sibling label of input element", exc_info=True)
|
||||
return ActionFailure(exception=e, javascript_triggered=javascript_triggered)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user