diff --git a/beetsplug/web/__init__.py b/beetsplug/web/__init__.py index ede4658a2..0cddc8746 100644 --- a/beetsplug/web/__init__.py +++ b/beetsplug/web/__init__.py @@ -218,7 +218,10 @@ def album_query(queries): @app.route('/album//art') def album_art(album_id): album = g.lib.get_album(album_id) - return flask.send_file(album.artpath) + if album.artpath: + return flask.send_file(album.artpath) + else: + return flask.abort(404) # Artists.