mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-01-29 22:30:57 +00:00
fix: catch TomlDecodeError
This commit is contained in:
@@ -122,7 +122,15 @@ def parse_macro_file(
|
||||
return results
|
||||
|
||||
with open(macro_path) as f:
|
||||
macro = toml.load(f)
|
||||
try:
|
||||
macro = toml.load(f)
|
||||
except toml.TomlDecodeError as e:
|
||||
logger.error(
|
||||
"[MacroParser] Could not parse macro",
|
||||
path=macro_path,
|
||||
error=e,
|
||||
)
|
||||
return results
|
||||
|
||||
logger.info(macro)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user