From 0f1c0a5c580b5670dd1524f03cad0c142a480ec5 Mon Sep 17 00:00:00 2001 From: pavelrn <30939390+pavelrn@users.noreply.github.com> Date: Mon, 18 Nov 2024 16:24:47 +0100 Subject: [PATCH] fix: account for missing tfin (#582) --- panos/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panos/base.py b/panos/base.py index cf57259a..d8505e91 100644 --- a/panos/base.py +++ b/panos/base.py @@ -5157,7 +5157,7 @@ def _parse_job_results(self, show_job_xml, get_devices=True): "name": device["devicename"], "result": device["result"], "starttime": device["tstart"], - "endtime": device["tfin"], + "endtime": device.get("tfin"), } # Errors and warnings might not have a full structure. If it is just a string, then # a TypeError will be produced, so in that case, just grab the string.