Fix small oversight

master
sfan5 2016-08-10 22:46:46 +02:00 committed by GitHub
parent 3b7f08a4f9
commit bd1e45fe26
1 changed files with 1 additions and 1 deletions

View File

@ -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]