Browse Source

skipped empty data item

Signed-off-by: Nicholas Tan Jerome <nicholastanjerome@gmail.com>
Nicholas Tan Jerome 5 years ago
parent
commit
6be579c9a6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      core.py

+ 2 - 1
core.py

@@ -86,7 +86,8 @@ def fetchDataADEI():
         data = requests.get(url,
                             auth=(os.environ["BORA_ADEI_USERNAME"],
                                   os.environ["BORA_ADEI_PASSWORD"])).content
-
+        if data == "":
+            continue
         tmp_data = data.splitlines()[-1]
         if "ERROR" in tmp_data:
             continue