Skip to content

Commit c2283f6

Browse files
authored
Avoid unnecessary isinstance check
1 parent 47e5738 commit c2283f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: fuzzing/fuzz-targets/fuzz_config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def TestOneInput(data):
3535
except (MissingSectionHeaderError, ParsingError, UnicodeDecodeError):
3636
return -1 # Reject inputs raising expected exceptions
3737
except ValueError as e:
38-
if isinstance(e, ValueError) and "embedded null byte" in str(e):
38+
if "embedded null byte" in str(e):
3939
# The `os.path.expanduser` function, which does not accept strings
4040
# containing null bytes might raise this.
4141
return -1

0 commit comments

Comments
 (0)