accept 0 as valid api resonse

This commit is contained in:
simon 2022-06-13 12:09:47 +07:00
parent c26c968a37
commit 2efd97d5d4
Signed by: simon
GPG Key ID: 2C15AA5E89985DD4

View File

@ -44,7 +44,7 @@ class Api:
"""make call using url from tile_config"""
response = self.make_request()
key_match = self.walk_response(response)
if not key_match:
if not key_match and not key_match == 0:
print(f"failed to result with key_map: {response}")
raise ValueError