mirror of
https://github.com/esphome/esphome.git
synced 2026-09-11 15:27:33 +00:00
Widen the identity-unknown guard to UnicodeError in the generic prepare_pch
This commit is contained in:
@@ -317,7 +317,7 @@ def prepare_pch(
|
||||
cmd_id,
|
||||
),
|
||||
)
|
||||
except OSError as err:
|
||||
except (OSError, UnicodeError) as err:
|
||||
# Identity unknown: a stale cache entry must never be served
|
||||
_LOGGER.warning(
|
||||
"Could not establish the pch identity; compiling without it: %s", err
|
||||
|
||||
Reference in New Issue
Block a user