From 8ba67674ccad39dd55ebb624aa58a662dccff2ff Mon Sep 17 00:00:00 2001 From: Serene-Arc <33189705+Serene-Arc@users.noreply.github.com> Date: Wed, 13 Sep 2023 12:00:24 +1000 Subject: [PATCH] Catch when items have no path --- beets/ui/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/ui/commands.py b/beets/ui/commands.py index 74e7f7d45..3117e64b4 100755 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -1232,7 +1232,7 @@ def update_items(lib, query, album, move, pretend, fields, affected_albums = set() for item in items: # Item deleted? - if not os.path.exists(syspath(item.path)): + if not item.path or not os.path.exists(syspath(item.path)): ui.print_(format(item)) ui.print_(ui.colorize('text_error', ' deleted')) if not pretend: