mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-08 23:37: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))
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user