10000 Caught invalid error · mayhemheroes/document-api-python@d38535b · GitHub
[go: up one dir, main page]

Skip to content

Commit d38535b

Browse files
committed
Caught invalid error
1 parent 24b26ff commit d38535b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mayhem/fuzz_twb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
from tableaudocumentapi import Workbook
1313

1414
from lxml.etree import XMLSyntaxError
15-
from tableaudocumentapi.xfile import TableauVersionNotSupportedException
15+
from tableaudocumentapi.xfile import TableauVersionNotSupportedException, TableauInvalidFileException
1616

1717
def TestOneInput(data):
1818
fdp = fuzz_helpers.EnhancedFuzzedDataProvider(data)
1919
try:
2020
with fdp.ConsumeTemporaryFile('.twb', all_data=True, as_bytes=True) as filename:
2121
Workbook(filename)
22-
except (XMLSyntaxError, TableauVersionNotSupportedException, ValueError, AttributeError):
22+
except (XMLSyntaxError, TableauVersionNotSupportedException, ValueError, AttributeError, TableauInvalidFileException):
2323
return -1
2424
except TypeError:
2525
if random.random() > .99:

0 commit comments

Comments
 (0)
0