-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Description
yaml code:
name: "something"
posessions:
- bar
- Towel
- Foopython code:
from strictyaml import load, Map, Str, Int, Seq, YAMLError
with open("my-data.yaml", "r") as stream:
try:
data = load(stream)
print(data)
except YAMLError as error:
print(error)Executing this code incorrectly prints an error about the colon:
File "data.yaml", line 2
posessions:
^
SyntaxError: invalid syntaxReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels