Merge pull request #193 from omalleyian/patch-1
Replace any None JSON values with 'n/a'
This commit is contained in:
commit
a5e6882b5f
1 changed files with 4 additions and 0 deletions
|
|
@ -529,6 +529,10 @@ class SafariBooks:
|
|||
|
||||
if "last_chapter_read" in response:
|
||||
del response["last_chapter_read"]
|
||||
|
||||
for key, value in response.items():
|
||||
if value is None:
|
||||
response[key] = 'n/a'
|
||||
|
||||
return response
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue