aboutsummaryrefslogtreecommitdiffstats
path: root/obfuscator/csv_writer.py
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2025-02-19 03:30:21 +0000
committerAlex Schofield <git@ajschof.me>2025-02-19 03:30:21 +0000
commitf1edb55e4f3e2692cb6259cd658c70db6f0cadd4 (patch)
tree3b7a319aefdc38f97e6e0f53578bdb4ee58b9301 /obfuscator/csv_writer.py
parentd53acac501d43fa501f23efc961a90e5ef31dbbb (diff)
downloadgdpr-obfuscator-f1edb55e4f3e2692cb6259cd658c70db6f0cadd4.tar.gz
gdpr-obfuscator-f1edb55e4f3e2692cb6259cd658c70db6f0cadd4.zip
improve error handling in create_byte_stream()
Diffstat (limited to 'obfuscator/csv_writer.py')
-rw-r--r--obfuscator/csv_writer.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/obfuscator/csv_writer.py b/obfuscator/csv_writer.py
index de7cd4b..2bff6e0 100644
--- a/obfuscator/csv_writer.py
+++ b/obfuscator/csv_writer.py
@@ -9,6 +9,7 @@ logger = get_logger("CSVWRITER")
def create_byte_stream(data: List[Dict[str, str]]) -> bytes:
if not data:
logger.error("Invalid or empty data was provided to write")
+ raise
output = io.StringIO()
git.ajschof.me — hosted by ajschofield — powered by cgit