diff options
| -rw-r--r-- | gdpr_obfuscator/utils.py | 3 |
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()) |
