diff --git a/pgloader/reader.py b/pgloader/reader.py index bd84278..4a8de0f 100644 --- a/pgloader/reader.py +++ b/pgloader/reader.py @@ -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: