Skip to content
Snippets Groups Projects
Unverified Commit 4358393c authored by Alexander Kreft's avatar Alexander Kreft
Browse files

ENH: catch ValueError

parent 08e13a67
No related branches found
No related tags found
2 merge requests!22Release 0.3,!16f xlsimporter error
Pipeline #13981 passed
......@@ -182,7 +182,7 @@ class XLSImporter(object):
"""
try:
xls_file = pd.io.excel.ExcelFile(filename)
except XLRDError as e:
except (XLRDError, ValueError) as e:
logger.warning(
"Cannot read \n{}.\nError:{}".format(filename,
str(e)),
......
......@@ -164,7 +164,6 @@ class XLSImporterTest(unittest.TestCase):
df_new = self.importer.check_unique(df)
self.assertEqual(df_new.shape[0], 1)
@pytest.mark.xfail(reason="Wrong Error is raised. See Issue #52")
def test_raise(self):
tmp = NamedTemporaryFile(delete=False, suffix=".lol")
tmp.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment