Skip to content

Commit a73fb1f

Browse files
committed
BLD: narrower check into pandas.lib ImportError, close #1845
1 parent bdf58cc commit a73fb1f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

RELEASE.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ pandas 0.8.2
102102
rolling_std (#1840)
103103
- Let Series.str.split accept no arguments (like str.split) (#1859)
104104
- Allow user to have dateutil 2.1 installed on a Python 2 system (#1851)
105+
- Catch ImportError less aggressively in pandas/__init__.py (#1845)
105106

106107
pandas 0.8.1
107108
============

pandas/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
except Exception: # pragma: no cover
1212
import sys
1313
e = sys.exc_info()[1] # Py25 and Py3 current exception syntax conflict
14-
if 'No module named' in str(e):
14+
if 'No module named lib' in str(e):
1515
raise ImportError('C extensions not built: if you installed already '
1616
'verify that you are not importing from the source '
1717
'directory')

0 commit comments

Comments
 (0)