Merge pull request #193 from omalleyian/patch-1

Replace any None JSON values with 'n/a'
This commit is contained in:
Lorenzo Di Fuccia 2020-04-02 22:01:11 +02:00 • committed by GitHub
commit a5e6882b5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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