Skip to content

Commit

Permalink
Fix default value of verify in converters
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed May 17, 2019
1 parent b75972f commit 997307c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions astropy/io/votable/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def __init__(self, field, config=None, pos=None):
self.binoutput = self._binoutput_fixed
self._struct_format = ">{:d}s".format(self.arraysize)

if config.get('verify') == 'exception':
if config.get('verify', 'ignore') == 'exception':
self.parse = self._ascii_parse
else:
self.parse = self._str_parse
Expand Down Expand Up @@ -439,7 +439,7 @@ def __init__(self, field, config=None, pos=None):
if config is None:
config = {}
Converter.__init__(self, field, config, pos)
if config.get('verify') == 'exception':
if config.get('verify', 'ignore') == 'exception':
self._splitter = self._splitter_pedantic
else:
self._splitter = self._splitter_lax
Expand Down Expand Up @@ -578,7 +578,7 @@ def parse(self, value, config=None, pos=None):
parts = self._splitter(value, config, pos)
if len(parts) != self._items:
warn_or_raise(E02, E02, (self._items, len(parts)), config, pos)
if config.get('verify') == 'error':
if config.get('verify', 'ignore') == 'error':
return self.parse_parts(parts, config, pos)
else:
if len(parts) == self._items:
Expand Down Expand Up @@ -698,7 +698,7 @@ def __init__(self, field, config=None, pos=None):
self._null_binoutput = self.binoutput(np.asarray(self.null), False)
self.filter_array = self._filter_null

if config.get('verify') == 'exception':
if config.get('verify', 'ignore') == 'exception':
self.parse = self._parse_pedantic
else:
self.parse = self._parse_permissive
Expand Down

0 comments on commit 997307c

Please sign in to comment.