summaryrefslogtreecommitdiff
path: root/ami.py
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-11-12 18:54:40 -0800
committerFuwn <[email protected]>2024-11-12 18:54:40 -0800
commit634605be8a38165d32a6495026e6551cd09f4620 (patch)
tree3b733884c9a76c85c5801d0610725667cee75cad /ami.py
parentfix: null check job city (diff)
downloadami-634605be8a38165d32a6495026e6551cd09f4620.tar.xz
ami-634605be8a38165d32a6495026e6551cd09f4620.zip
fix: null check api responseHEADmain
Diffstat (limited to 'ami.py')
-rwxr-xr-xami.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ami.py b/ami.py
index 45b7605..e15031d 100755
--- a/ami.py
+++ b/ami.py
@@ -163,6 +163,9 @@ def print_job_table():
table_data = []
+ if json_api_data["data"]["searchJobCardsByLocation"]["jobCards"] is None:
+ return
+
for job in json_api_data["data"]["searchJobCardsByLocation"]["jobCards"]:
table_data.append(
[