Properly handle unhashable values in YAML

Bug #1791187 reported by Kyle Fazzari
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Status tracked in Trunk
Legacy
Fix Committed
Medium
Kyle Fazzari
Trunk
Fix Released
Medium
Kyle Fazzari

Bug Description

Typically yaml raises a yaml.constructor.ConstructorError, but we're using a custom dict loader that doesn't. Start raising a yaml.constructor.ConstructorError, and handle it properly when loading the yaml.

See Sentry SNAPCRAFT-2R (https://sentry.io/share/issue/21817a7f708448cf8a94cbcbf4a5cc00/) for more details.

Revision history for this message
Kyle Fazzari (kyrofa) wrote :
Changed in snapcraft:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Kyle Fazzari (kyrofa)
Changed in snapcraft:
milestone: none → 2.44
Kyle Fazzari (kyrofa)
description: updated
Kyle Fazzari (kyrofa)
Changed in snapcraft:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.