mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-19 14:36:22 -05:00
* A malformed entry stops a backup preview or merge with an error naming it Backup previews and merges read every config entry as well-formed: a malformed one (an entry that is not a mapping, a missing or non-text identity, a short tag_files line) raised an AttributeError or TypeError, so the preview was a 500 and a merge failed with a generic message. `ConfigFile.backup_entries` now checks each entry a preview or merge reads, in the backup and in the current config, and raises InvalidConfig naming the file and the entry; the merge endpoint passes that message on. A malformed entry may be corrupt, so it is not skipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * A falsy "tags" that is not a mapping is an error in a backup preview or merge `tags: []`, `''`, `0` or `false` became no tags through `or dict()` before the mapping check. Only a missing or null `tags` means no tags now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| test | ||
| __init__.py | ||
| api.py | ||
| conftest.py | ||
| downloader.py | ||
| errors.py | ||
| lib.py | ||
| models.py | ||
| schema.py | ||