From 8d2c575758738d388b9a515dcdef0910fe4241b5 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Sat, 25 Sep 2010 15:07:41 -0400 Subject: [PATCH] properly loads the image and detects corrupted images --- quadtree.py | 1 + 1 file changed, 1 insertion(+) diff --git a/quadtree.py b/quadtree.py index 88b6204..10216b3 100644 --- a/quadtree.py +++ b/quadtree.py @@ -532,6 +532,7 @@ def render_worldtile(chunks, colstart, colend, rowstart, rowend, path): for col, row, chunkfile in chunks: try: chunkimg = Image.open(chunkfile) + chunkimg.load() except IOError, e: print "Error opening file", chunkfile print "Attempting to re-generate it..."