From aadc0fcffe02db59a755eda11c0e17866f9fe0f7 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Thu, 28 Oct 2010 01:13:57 -1000 Subject: [PATCH] attempt to keep processing the NBT data if it's uncompressed --- nbt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbt.py b/nbt.py index f6d7112..820eb5e 100644 --- a/nbt.py +++ b/nbt.py @@ -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):