Skip to content

Commit

Permalink
Allow coverage miss on fallback trace-id property lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
jshcodes committed Dec 23, 2023
1 parent 14b12a5 commit b4529a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/falconpy/_result/_headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ def ratelimit_remaining(self) -> Optional[int]:
return self.get_property("X-Ratelimit-Remaining", None)

@property
def trace_id(self) -> Optional[str]:
def trace_id(self) -> Optional[str]: # pragma: no cover
"""Return the contents of the X-Cs-Traceid key."""
return self.get_property("X-Cs-Traceid", None)
2 changes: 1 addition & 1 deletion src/falconpy/_result/_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def trace_id(self) -> Optional[str]:
_returned: Optional[str] = None
if self.meta:
_returned = self.meta.trace_id
elif self.headers:
elif self.headers: # pragma: no cover
_returned = self.headers.trace_id
return _returned

Expand Down

0 comments on commit b4529a8

Please sign in to comment.