Skip to content

Commit

Permalink
fix: fix io main thread detector (#79165)
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnagara authored Oct 16, 2024
1 parent a9641f9 commit 4998063
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ def _is_io_on_main_thread(self, span: Span) -> bool:
data = span.get("data", {})
if data is None:
return False
file_path = data.get("file.path", "").lower()
file_path = (data.get("file.path") or "").lower()

if any(glob_match(file_path, ignored_pattern) for ignored_pattern in self.IGNORED_LIST):
return False
# doing is True since the value can be any type
Expand Down

0 comments on commit 4998063

Please sign in to comment.