Merge branch 'main' into feature-sort-by-frequent-use

This commit is contained in:
DominikDoom
2023-09-19 12:14:12 +02:00

View File

@@ -133,8 +133,8 @@ def get_yaml_wildcards():
parse_dynamic_prompt_format(yaml_wildcards, data, path)
else:
print('No data found in ' + path.name)
except yaml.YAMLError:
print('Issue in parsing YAML file ' + path.name)
except (yaml.YAMLError, UnicodeDecodeError) as e:
print(f'Issue in parsing YAML file {path.name}: {e}')
continue
# Sort by count