From 40b0ab4ead0eba561dfb245bc7131a88c0787914 Mon Sep 17 00:00:00 2001 From: Tommy Schnabel-Jones Date: Fri, 16 Jan 2026 11:40:26 -0500 Subject: [PATCH] Fixed doc grammar; added error precedence comment --- beetsplug/badfiles.py | 2 ++ docs/plugins/badfiles.rst | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/beetsplug/badfiles.py b/beetsplug/badfiles.py index 4b4f0f0c8..5e461defa 100644 --- a/beetsplug/badfiles.py +++ b/beetsplug/badfiles.py @@ -227,6 +227,8 @@ class BadFiles(BeetsPlugin): ui.print_(error_line) + # Check for and handle automatic actions. + # Errors always take precedence over warnings. if found_error and error_action != "ask": return self.handle_import_action(error_action, "error") elif found_warning and warning_action != "ask": diff --git a/docs/plugins/badfiles.rst b/docs/plugins/badfiles.rst index b5285ea82..86b90e606 100644 --- a/docs/plugins/badfiles.rst +++ b/docs/plugins/badfiles.rst @@ -35,7 +35,7 @@ option. When on, checkers will be run against every imported file and warnings and errors will be presented when selecting a tagging option. `import_action_on_error` and `import_action_on_warning` can be used to take -automatic action on warning and errors. Both options default to `ask`. +automatic action on warnings and errors. Both options default to `ask`. Valid options for both `import_action_on_(warning|error)` are `ask skip abort continue`.