Skip to content
Snippets Groups Projects
Commit 0cf2760e authored by pippin's avatar pippin Committed by schneider
Browse files

st3m: handle toml syntax errors more gracefully

Fixing issue #57
parent dfc7f052
No related branches found
No related tags found
No related merge requests found
...@@ -108,6 +108,8 @@ class BundleMetadata: ...@@ -108,6 +108,8 @@ class BundleMetadata:
try: try:
t = toml.load(f) t = toml.load(f)
except toml.TomlDecodeError as e:
raise BundleMetadataCorrupt(str(e))
except Exception as e: except Exception as e:
raise BundleMetadataCorrupt(str(e)) raise BundleMetadataCorrupt(str(e))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment