Skip to content

Commit

Permalink
MB-5988: better error message if sqlite3 missing
Browse files Browse the repository at this point in the history
Change-Id: I103b145f652aab7f12472897e51e35bb4970d4d7
Reviewed-on: http://review.couchbase.org/18739
Reviewed-by: Bin Cui <bin.cui@gmail.com>
Tested-by: Steve Yen <steve.yen@gmail.com>
  • Loading branch information
steveyen committed Jul 24, 2012
1 parent b4a272b commit 159cf86
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pump_transfer.py
Expand Up @@ -7,6 +7,15 @@
import sys
import threading

try:
import sqlite3
except ImportError:
msg = "error: could not import sqlite3 module"
if sys.version_info[0] < 2 or sys.version_info[1] < 6:
msg = msg + "; later versions of python (>= 2.6)" + \
" ship the required versions of the sqlite3 module"
sys.exit(msg)

import pump
import pump_bfd
import pump_csv
Expand Down

0 comments on commit 159cf86

Please sign in to comment.