print this NBT load error with more info

This commit is contained in:
David Vierra 2010-11-06 02:31:13 -10:00
parent e16c2aa227
commit 473154a833

View File

@ -719,7 +719,7 @@ class MCLevel(object):
try: try:
root_tag = nbt.load(buf=data); root_tag = nbt.load(buf=data);
except Exception, e: except Exception, e:
info( u"Error during NBT load: {0}".format(e) ) info( u"Error during NBT load: {0!r}".format(e) )
info( u"Fallback: Detected compressed flat block array, yzx ordered " ) info( u"Fallback: Detected compressed flat block array, yzx ordered " )
lev = MCJavaLevel(filename, data); lev = MCJavaLevel(filename, data);
lev.compressed = compressed; lev.compressed = compressed;