Skip to content

Commit

Permalink
fix: additional safety for span parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
therightstuff committed Oct 13, 2023
1 parent e9ecf43 commit 32c2c71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/test_utils/spans_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_spans_from_file(
)
time.sleep(1)
waited_time_in_sec += 1
return SpansContainer(spans=spans) # noqa
return SpansContainer(spans=spans if spans else []) # noqa

def get_first_root(self) -> Dict[str, Any]:
return self.get_root_spans()[0]
Expand Down

0 comments on commit 32c2c71

Please sign in to comment.