diff --git a/update_jade_fw.py b/update_jade_fw.py index e6b32129..a87b14f8 100755 --- a/update_jade_fw.py +++ b/update_jade_fw.py @@ -73,10 +73,10 @@ def _delta_appropriate(fw): # Download compressed firmware file from Firmware Server using 'requests' def download_file(verinfo, release): # Workout hw_target subdir - hw_target = {'JADE': 'jade', 'JADE_V1.1': 'jade1.1'}.get(verinfo['BOARD_TYPE']) + hw_target = {'JADE': 'jade', 'JADE_V1.1': 'jade1.1'}.get(verinfo.get('BOARD_TYPE', 'jade')) build_type = {'SB': '', 'DEV': 'dev'}.get(verinfo['JADE_FEATURES']) if hw_target is None or build_type is None: - logger.error(f'Unsupported hardware: {verinfo["BOARD_TYPE"]} / {verinfo["JADE_FEATURES"]}') + logger.error(f'Unsupported hardware: {verinfo.get("BOARD_TYPE")} / {verinfo.get("JADE_FEATURES")}') return None, None, None, None hw_target += build_type