diff --git a/beetsplug/web/__init__.py b/beetsplug/web/__init__.py index 635c2f5a8..9de44dcb4 100644 --- a/beetsplug/web/__init__.py +++ b/beetsplug/web/__init__.py @@ -285,8 +285,8 @@ def album_query(queries): @app.route('/album//art') def album_art(album_id): album = g.lib.get_album(album_id) - if album.artpath: - return flask.send_file(album.artpath) + if album and album.artpath: + return flask.send_file(album.artpath.decode()) else: return flask.abort(404)