0

Merged master into brownan-chunkscan

This pulls in all the 1.9prep and textures.py updates into
brownan-chunkscan
This commit is contained in:
Andrew Brown
2011-11-20 10:53:19 -05:00
15 changed files with 2655 additions and 2128 deletions

View File

@@ -337,7 +337,12 @@ class QuadtreeGen(object):
quad = Image.open(path[1]).resize((192,192), Image.ANTIALIAS)
img.paste(quad, path[0])
except Exception, e:
logging.warning("Couldn't open %s. It may be corrupt, you may need to delete it. %s", path[1], e)
logging.warning("Couldn't open %s. It may be corrupt. Error was '%s'", path[1], e)
logging.warning("I'm going to try and delete it. You will need to run the render again")
try:
os.unlink(path[1])
except Exception, e:
logging.error("I couldn't delete it. You will need to delete it yourself. Error was '%s'", e)
# Save it
if self.imgformat == 'jpg':