Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Avoid exception if grids table doesn't exist

  • Loading branch information...
commit 41fad1d7531d0ab89a8c350230ed697bd1543b69 1 parent 3340e9d
@rouault rouault authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mbutil/util.py
View
2  mbutil/util.py
@@ -221,10 +221,10 @@ def mbtiles_to_disk(mbtiles_file, directory_path, **kwargs):
t = tiles.fetchone()
# grids
- count = con.execute('select count(zoom_level) from grids;').fetchone()[0]
done = 0
msg =''
try:
+ count = con.execute('select count(zoom_level) from grids;').fetchone()[0]
grids = con.execute('select zoom_level, tile_column, tile_row, grid from grids;')
g = grids.fetchone()
except sqlite3.OperationalError:
Please sign in to comment.
Something went wrong with that request. Please try again.