0

added warning for extremely absurd region files

This commit is contained in:
Andrew Brown
2012-05-11 22:19:15 -04:00
parent 94c1e2980a
commit fdda8234ff
2 changed files with 2 additions and 1 deletions

View File

@@ -587,7 +587,6 @@ class TileSet(object):
self.xradius = xradius
self.yradius = yradius
def _rearrange_tiles(self):
"""If the target size of the tree is not the same as the existing size
on disk, do some re-arranging

View File

@@ -484,6 +484,8 @@ class RegionSet(object):
p = f.split(".")
x = int(p[1])
y = int(p[2])
if x > 10000 or y > 10000:
logging.warning("Holy shit what is up with region file %s !?" % f)
yield (x, y, path)
class RegionSetWrapper(object):