mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 17:05:36 +00:00
Narrow broad except to OSError and CalledProcessError
This commit is contained in:
@@ -285,7 +285,7 @@ def _addr2line(tool: str, elf: Path, addr: str) -> str:
|
||||
check=True,
|
||||
)
|
||||
return result.stdout.strip()
|
||||
except Exception: # pylint: disable=broad-except
|
||||
except (OSError, subprocess.CalledProcessError):
|
||||
return f"{addr} (decode failed)"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user