attempt to keep processing the NBT data if it's uncompressed

This commit is contained in:
David Vierra 2010-10-28 01:13:57 -10:00
parent 564d47753b
commit aadc0fcffe

2
nbt.py
View File

@ -385,7 +385,7 @@ def loadFile(filename):
except IOError:
print "File %s not zipped" % filename
data = file(filename, "rb").read();
else:
finally:
return load(buf=fromstring(data, 'uint8'));
def load_named(data, data_cursor, tag_type):