Skip to content

Commit

Permalink
chg: Skip a few more warning messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Feb 18, 2025
1 parent 7f8b35b commit 14a0e86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion har2tree/har2tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,8 @@ def rendered_node(self) -> URLNode:
if node:
return node[0]

if self.har.final_redirect:
browser_errors = ['chrome-error', 'about:blank']
if self.har.final_redirect and not any(self.har.final_redirect.startswith(r) for r in browser_errors):
self.logger.warning(f'Final redirect URL from adress bar not in tree: {self.har.final_redirect}')
else:
# No final redirect, already logged earlier.
Expand Down

0 comments on commit 14a0e86

Please sign in to comment.