summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pakarlib/fetch.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pakarlib/fetch.py b/pakarlib/fetch.py
index f26f3e4..9ba6e7e 100644
--- a/pakarlib/fetch.py
+++ b/pakarlib/fetch.py
@@ -58,6 +58,8 @@ def get_polygons():
print(f"{i} - got CDATA error, skipping")
if "Request unsuccessful" in res.text:
print(f"{i} - got incapsula error, skipping")
+ if '"{}"' in res.text:
+ print(f"{i} - got empty object, skipping")
else:
with open(DATA_DIR / "polygons" / f"{i}.json", "wb") as f:
cont = res.content