mapbox/mbutil — pull request #24 by rouault (2012-01-08 00:12:41+00:00)
Title: Avoid exception if grids table doesn't exist

Otherwise we get an exception like the following one :

Traceback (most recent call last):
File "mb-util", line 50, in
mbtiles_to_disk(mbtiles_file, directory_path, **options.__dict__)
File "/home/even/gdal/svn/trunk/gdal/mbutil/mbutil/util.py", line 224, in mbtiles_to_disk
count = con.execute('select count(zoom_level) from grids;').fetchone()[0]
sqlite3.OperationalError: no such table: grids