Commit 861441e0 authored by Aurel's avatar Aurel

do not raise when value is optional and value is not of the wanted type

this restore the behaviour of the code before commit 8e073789
parent c4886de0
......@@ -77,6 +77,8 @@ def SQLVar_render(self, md):
#v="'%s'" % v
return v
if args.get('optional'):
return 'null'
raise ValueError('Invalid %s value for <em>%s</em>: %r'
% (t, self.__name__, v))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment