mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 17:43:54 +08:00
add error handling to pandad get signature
This commit is contained in:
@@ -40,7 +40,11 @@ def get_expected_signature(fw_fn=None):
|
||||
if fw_fn is None:
|
||||
fw_fn = get_firmware_fn()
|
||||
|
||||
return Panda.get_signature_from_firmware(fw_fn)
|
||||
try:
|
||||
return Panda.get_signature_from_firmware(fw_fn)
|
||||
except Exception:
|
||||
cloudlog.exception("Error computing expected signature")
|
||||
return b""
|
||||
|
||||
|
||||
def update_panda():
|
||||
|
||||
Reference in New Issue
Block a user