Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c2283f6

Browse filesBrowse files
authored
Avoid unnecessary isinstance check
1 parent 47e5738 commit c2283f6
Copy full SHA for c2283f6

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎fuzzing/fuzz-targets/fuzz_config.py

Copy file name to clipboardExpand all lines: fuzzing/fuzz-targets/fuzz_config.py
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.