Make api_like_OAI.py work with Microsoft Guidance
Check for None in addition to empty string check in all request params
This commit is contained in:
parent
335acd2ffd
commit
b5184d7274
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,8 @@ def is_present(json, key):
|
||||||
buf = json[key]
|
buf = json[key]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
return False
|
return False
|
||||||
|
if json[key] == None:
|
||||||
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue