Merge "Remove conversion debug message"
This commit is contained in:
commit
c0226ce114
@ -242,9 +242,9 @@ class Query(_Base):
|
|||||||
try:
|
try:
|
||||||
converted_value = ast.literal_eval(self.value)
|
converted_value = ast.literal_eval(self.value)
|
||||||
except (ValueError, SyntaxError):
|
except (ValueError, SyntaxError):
|
||||||
msg = _('Failed to convert the metadata value %s'
|
# Unable to convert the metadata value automatically
|
||||||
' automatically') % (self.value)
|
# let it default to self.value
|
||||||
LOG.debug(msg)
|
pass
|
||||||
else:
|
else:
|
||||||
if type not in self._supported_types:
|
if type not in self._supported_types:
|
||||||
# Types must be explicitly declared so the
|
# Types must be explicitly declared so the
|
||||||
@ -254,7 +254,7 @@ class Query(_Base):
|
|||||||
raise TypeError()
|
raise TypeError()
|
||||||
converted_value = self._type_converters[type](self.value)
|
converted_value = self._type_converters[type](self.value)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
msg = _('Failed to convert the value %(value)s'
|
msg = _('Unable to convert the value %(value)s'
|
||||||
' to the expected data type %(type)s.') % \
|
' to the expected data type %(type)s.') % \
|
||||||
{'value': self.value, 'type': type}
|
{'value': self.value, 'type': type}
|
||||||
raise ClientSideError(msg)
|
raise ClientSideError(msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user