Skip to content

Commit fcf6353

Browse files
author
hirokazu.yamamoto
committed
Issue #1706863: Fixed "'NoneType' object has no attribute 'rfind'" error when sqlite libfile not found.
git-svn-id: http://svn.python.org/projects/python/trunk@66776 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 3b256f6 commit fcf6353

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,8 @@ class db_found(Exception): pass
934934
]
935935
sqlite_libfile = self.compiler.find_library_file(
936936
sqlite_dirs_to_check + lib_dirs, 'sqlite3')
937-
sqlite_libdir = [os.path.abspath(os.path.dirname(sqlite_libfile))]
937+
if sqlite_libfile:
938+
sqlite_libdir = [os.path.abspath(os.path.dirname(sqlite_libfile))]
938939

939940
if sqlite_incdir and sqlite_libdir:
940941
sqlite_srcs = ['_sqlite/cache.c',

0 commit comments

Comments
 (0)