Skip to content

Commit c207d18

Browse files
committed
Merge pull request #8195 from someben/master
ENH: more verbosity to PyTables import failures
2 parents 756f907 + 0064605 commit c207d18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/io/pytables.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,8 @@ def __init__(self, path, mode=None, complevel=None, complib=None,
398398
fletcher32=False, **kwargs):
399399
try:
400400
import tables
401-
except ImportError: # pragma: no cover
402-
raise ImportError('HDFStore requires PyTables')
401+
except ImportError as ex: # pragma: no cover
402+
raise ImportError('HDFStore requires PyTables, "{ex}" problem importing'.format(ex=str(ex)))
403403

404404
self._path = path
405405
if mode is None:

0 commit comments

Comments
 (0)