| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,7 +35,7 @@ def TestOneInput(data): | |||
| 35 | 35 | except (MissingSectionHeaderError, ParsingError, UnicodeDecodeError): | |
| 36 | 36 | return -1 # Reject inputs raising expected exceptions | |
| 37 | 37 | except ValueError as e: | |
| 38 | - if isinstance(e, ValueError) and "embedded null byte" in str(e): | ||
| 38 | + if "embedded null byte" in str(e): | ||
| 39 | 39 | # The `os.path.expanduser` function, which does not accept strings | |
| 40 | 40 | # containing null bytes might raise this. | |
| 41 | 41 | return -1 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments