fix the bugfix for cases when field_count is not used (None)

This commit is contained in:
dim 2008-03-10 14:44:02 +00:00
parent 1843c84636
commit f13dd16dba

View File

@ -95,7 +95,7 @@ class DataReader:
% (option, default))
self.__dict__[option] = default
if opt_type == 'int':
if opt_type == 'int' and self.__dict__[option] is not None:
try:
self.__dict__[option] = int(self.__dict__[option])
except ValueError, e: