Skip to content

Commit

Permalink
Remove null characters from the CSV (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
cosimon authored Apr 23, 2021
1 parent 3ca2531 commit 24d088f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tap_bing_ads/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ def stream_report(stream_name, report_name, url, report_time):
header_line = next(csv_file)[1:-1]
headers = header_line.replace('"', '').split(',')

reader = csv.DictReader(csv_file, fieldnames=headers)
reader = csv.DictReader((line.replace('\0', '') for line in csv_file), fieldnames=headers)

with metrics.record_counter(stream_name) as counter:
for row in reader:
Expand Down

0 comments on commit 24d088f

Please sign in to comment.