Potential fix for pull request finding 'Empty except'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This commit is contained in:
Manfred Riem
2026-05-07 11:39:51 -05:00
committed by GitHub
parent 1786d27c06
commit bd04937927

View File

@@ -4354,7 +4354,8 @@ def extension_update(
with f:
manifest_data = yaml.safe_load(f.read()) or {}
except KeyError:
pass
# extension.yml not present at archive root; use nested fallback below.
manifest_data = None
# Fall back to nested-directory search if root-level
# was missing (KeyError) or not a regular file (None).
if manifest_data is None: