aboutsummaryrefslogtreecommitdiffstats
path: root/gdpr_obfuscator/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'gdpr_obfuscator/utils.py')
-rw-r--r--gdpr_obfuscator/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdpr_obfuscator/utils.py b/gdpr_obfuscator/utils.py
index c8aadb2..918bf99 100644
--- a/gdpr_obfuscator/utils.py
+++ b/gdpr_obfuscator/utils.py
@@ -17,6 +17,9 @@ class Utilities:
def create_byte_stream(self, data: List[Dict[str, str]]) -> bytes:
+ if not data:
+ return b""
+
output = io.StringIO()
headers = list(data[0].keys())
git.ajschof.me — hosted by ajschofield — powered by cgit