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:
Ryder Wishart 2023-08-23 10:10:57 -07:00 committed by GitHub
parent 335acd2ffd
commit b5184d7274
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,8 @@ def is_present(json, key):
buf = json[key]
except KeyError:
return False
if json[key] == None:
return False
return True