mirror of
https://github.com/beetbox/beets.git
synced 2026-01-06 07:53:40 +01:00
Catch when items have no path
This commit is contained in:
parent
cd0f2b1aa3
commit
8ba67674cc
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue