Skip to content
Snippets Groups Projects

pubspec: Fix crash on invalid yaml tag

Merged vlorentz requested to merge yaml-tag into master
2 files
+ 12
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -400,7 +400,7 @@ class YamlMapping(DictMapping):
raw_content_string: str = raw_content.decode()
try:
content_dict = yaml.load(raw_content_string, Loader=SafeLoader)
except (yaml.scanner.ScannerError, yaml.parser.ParserError):
except yaml.YAMLError:
return None
if isinstance(content_dict, dict):
Loading