qcomgps: fix NameError on teardown (#34545)

continue teardown if diag not there
This commit is contained in:
Shane Smiskol
2025-02-07 16:06:02 -06:00
committed by GitHub
parent fb517b5bca
commit b4a9c67bbe

View File

@@ -240,8 +240,11 @@ def main() -> NoReturn:
cloudlog.warning("caught sig disabling quectel gps")
gpio_set(GPIO.GNSS_PWR_EN, False)
teardown_quectel(diag)
cloudlog.warning("quectel cleanup done")
try:
teardown_quectel(diag)
cloudlog.warning("quectel cleanup done")
except NameError:
cloudlog.warning('quectel not yet setup')
stop_download_event.set()
assist_fetch_proc.kill()