diff --git a/src/oic/oauth2/message.py b/src/oic/oauth2/message.py index 2df245a42..a38f0f071 100644 --- a/src/oic/oauth2/message.py +++ b/src/oic/oauth2/message.py @@ -370,15 +370,19 @@ def _add_value(self, skey, vtyp, key, val, _deser, null_allowed): try: self._dict[skey] = int(val) except (ValueError, TypeError): - raise ValueError( - '"{}", wrong type of value for "{}"'.format(val, skey) - ) + logger.warn('"{}", wrong type of value for "{}"'.format(val, skey)) + pass + #raise ValueError( + # '"{}", wrong type of value for "{}"'.format(val, skey) + #) else: return elif vtyp is bool: - raise ValueError( - '"{}", wrong type of value for "{}"'.format(val, skey) - ) + logger.warn('"{}", wrong type of value for "{}"'.format(val, skey)) + pass + #raise ValueError( + # '"{}", wrong type of value for "{}"'.format(val, skey) + #) if isinstance(val, str): self._dict[skey] = val