Issue - Update 2
Conditionally closes the .IDD file if a TypeError hasn't been previously raised.
@@ -40,6 +40,8 @@ def iddversiontuple(afile):
except TypeError:
fhandle = afile
line1 = fhandle.readline()
+ if fhandle != afile:
+ fhandle.close()
try:
line1 = line1.decode("ISO-8859-2")
except AttributeError:
