attempt to keep processing the NBT data if it's uncompressed
This commit is contained in:
parent
564d47753b
commit
aadc0fcffe
2
nbt.py
2
nbt.py
@ -385,7 +385,7 @@ def loadFile(filename):
|
|||||||
except IOError:
|
except IOError:
|
||||||
print "File %s not zipped" % filename
|
print "File %s not zipped" % filename
|
||||||
data = file(filename, "rb").read();
|
data = file(filename, "rb").read();
|
||||||
else:
|
finally:
|
||||||
return load(buf=fromstring(data, 'uint8'));
|
return load(buf=fromstring(data, 'uint8'));
|
||||||
|
|
||||||
def load_named(data, data_cursor, tag_type):
|
def load_named(data, data_cursor, tag_type):
|
||||||
|
Reference in New Issue
Block a user