Skip to content

Commit 0064605

Browse files
committed
more verbosity to PyTables import failures
1 parent 01e1856 commit 0064605

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)