Skip to content

Commit c07d4b4

Browse files
Allow for missing INSTLIST
1 parent ffdfacc commit c07d4b4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

installation_and_upgrade/ibex_install_utils/install_tasks.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,12 @@ def run_instrument_deploy_pre_stop(self):
215215
self._system_tasks.user_confirm_upgrade_type_on_machine('Client/Server Machine')
216216

217217
# Check whether inst is SECI or not
218-
central_inst_info = g.get_pv("CS:INSTLIST")
219-
central_inst_info = FileUtils.dehex_and_decompress(bytes(central_inst_info, encoding="utf8")).decode("utf-8")
220-
central_inst_info = json.loads(central_inst_info)
218+
try:
219+
central_inst_info = g.get_pv("CS:INSTLIST")
220+
central_inst_info = FileUtils.dehex_and_decompress(bytes(central_inst_info, encoding="utf8")).decode("utf-8")
221+
central_inst_info = json.loads(central_inst_info)
222+
except:
223+
central_inst_info = {}
221224

222225
central_specific_inst_info = None
223226
for inst in central_inst_info:

0 commit comments

Comments
 (0)