Commit faaeb8ae by taufikyu

perbaiki get_mandatory

1 parent 96d2dce7
...@@ -296,7 +296,7 @@ def get_mandatory(data, values): ...@@ -296,7 +296,7 @@ def get_mandatory(data, values):
elif isinstance(values,dict): elif isinstance(values,dict):
for k,v in values.items(): for k,v in values.items():
if v: if v:
if len(str(data.get(k,'')) > v: if len(str(data.get(k,''))) > v:
raise JsonRpcInvalidDataError( raise JsonRpcInvalidDataError(
message="{} error, max character {}".format(k, v) message="{} error, max character {}".format(k, v)
) )
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!