From bd1e45fe269e87dc7157ee61becd5c97bffc439a Mon Sep 17 00:00:00 2001 From: sfan5 Date: Wed, 10 Aug 2016 22:46:46 +0200 Subject: [PATCH] Fix small oversight --- mt2obj.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mt2obj.py b/mt2obj.py index 7a16c1b..fe7d66d 100755 --- a/mt2obj.py +++ b/mt2obj.py @@ -107,7 +107,7 @@ class MtsReader(): raise Exception("Incorrect magic value, this isn't a schematic!") ver = struct.unpack("!H", f.read(2))[0] if ver not in (3, 4): - raise Exception("Wrong file version: got %d, expected 3 or 4" % v)# + raise Exception("Wrong file version: got %d, expected 3 or 4" % ver) self.dim = struct.unpack("!HHH", f.read(6)) f.seek(self.dim[1], 1) # skip some stuff count = struct.unpack("!H", f.read(2))[0]