mirror of
https://github.com/browser-use/browser-use.git
synced 2026-09-14 19:59:47 +08:00
49fb16b693
BrowserError.__str__ unconditionally appended 'during: <while_handling_event>',
so any error with details set but no event (e.g. ScrollToText 'Text not found',
click failures raised from action handlers) renders as
Text not found: "X" ({'text': 'X'}) during: None
The 'during: None' tail is logging noise that surfaces ~1.6k times/day in
prod (Datadog: status:error env:production '"\'\}) during: None"', 24h).
Build the string from the parts that are actually populated, instead of
two mutually-exclusive branches that always print one of them.
6.1 KiB
6.1 KiB