Skip to content

Commit

Permalink
Remove code from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
buffer committed Oct 17, 2024
1 parent 2690648 commit 1fdd226
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thug/DOM/JSInspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ def run(self):
try:
result = self.ctxt.eval(self.script)
except (UnicodeDecodeError, TypeError):
if "\\u" in self.script:
if "\\u" in self.script: # pragma: no cover
try:
result = self.ctxt.eval(self.script.replace("\\u", "%u"))
except Exception as e: # pragma: no cover,pylint:disable=broad-except
except Exception as e: # pylint:disable=broad-except
log.warning("[JSInspector] %s", str(e))
except SyntaxError:
try:
Expand Down

0 comments on commit 1fdd226

Please sign in to comment.