From 2efd97d5d4071d2cff97ab71f64ad6d5c8adb160 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 13 Jun 2022 12:09:47 +0700 Subject: [PATCH] accept 0 as valid api resonse --- tilefy/src/api_call.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tilefy/src/api_call.py b/tilefy/src/api_call.py index e02fa69..7e2d205 100644 --- a/tilefy/src/api_call.py +++ b/tilefy/src/api_call.py @@ -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