Skip to content

Commit

Permalink
Explicitely check for None instead of truthiness.
Browse files Browse the repository at this point in the history
  • Loading branch information
JanEricNitschke committed Jun 23, 2024
1 parent cdc3ed9 commit e01fd24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awpy/parsers/rounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def parse_rounds(parser: DemoParser, events: dict[str, pd.DataFrame]) -> pd.Data

# Find the bomb plant ticks
bomb_planted = events.get("bomb_planted")
if not bomb_planted or bomb_planted.shape[0] == 0:
if bomb_planted is None or bomb_planted.shape[0] == 0:
return rounds_df

rounds_df["bomb_plant"] = rounds_df.apply(
Expand Down

0 comments on commit e01fd24

Please sign in to comment.