mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-09 07:47:00 +02:00
fix the bugfix for cases when field_count is not used (None)
This commit is contained in:
parent
1843c84636
commit
f13dd16dba
@ -95,7 +95,7 @@ class DataReader:
|
|||||||
% (option, default))
|
% (option, default))
|
||||||
self.__dict__[option] = default
|
self.__dict__[option] = default
|
||||||
|
|
||||||
if opt_type == 'int':
|
if opt_type == 'int' and self.__dict__[option] is not None:
|
||||||
try:
|
try:
|
||||||
self.__dict__[option] = int(self.__dict__[option])
|
self.__dict__[option] = int(self.__dict__[option])
|
||||||
except ValueError, e:
|
except ValueError, e:
|
||||||
|
Loading…
Reference in New Issue
Block a user