From a229aaaa239004fe24dddbc61906d50e51dcf449 Mon Sep 17 00:00:00 2001 From: Laurent Savaete Date: Mon, 2 Oct 2023 11:56:36 +0200 Subject: [PATCH] fix: prevent crash on null chars in pr titles (#233) --- tap_github/repository_streams.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tap_github/repository_streams.py b/tap_github/repository_streams.py index 3095f123..d70889b6 100644 --- a/tap_github/repository_streams.py +++ b/tap_github/repository_streams.py @@ -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: