diff --git a/projects/ftfy/fuzz_fix.py b/projects/ftfy/fuzz_fix.py index c1503f7d1..8f0ef4eab 100644 --- a/projects/ftfy/fuzz_fix.py +++ b/projects/ftfy/fuzz_fix.py @@ -35,6 +35,8 @@ def TestInput(data): f.close() ftfy.guess_bytes(fdp.ConsumeBytes(100)) + except UnicodeEncodeError as e2: + pass except UnicodeError as e: if "Hey wait, this isn't Unicode." not in str(e): raise e