Skip to content

Commit

Permalink
fix: prevent crash on null chars in pr titles (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentS authored Oct 2, 2023
1 parent a81f6cd commit a229aaa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tap_github/repository_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,8 @@ def post_process(self, row: dict, context: Optional[Dict] = None) -> dict:
# such chars are removed from the data before we pass it on to
# the target
row["body"] = row["body"].replace("\x00", "")
if row["title"] is not None:
row["title"] = row["title"].replace("\x00", "")

# replace +1/-1 emojis to avoid downstream column name errors.
if "reactions" in row:
Expand Down

0 comments on commit a229aaa

Please sign in to comment.