From 8f0eabcb715b47353bf1796dcdb400d4e044f91f Mon Sep 17 00:00:00 2001
From: Eliot Berriot <contact@eliotberriot.com>
Date: Mon, 16 Dec 2019 09:54:15 +0100
Subject: [PATCH] Fixed unhandled crash when getting empty tag

---
 api/funkwhale_api/music/metadata.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/api/funkwhale_api/music/metadata.py b/api/funkwhale_api/music/metadata.py
index 9b3b6a387..33cf2667e 100644
--- a/api/funkwhale_api/music/metadata.py
+++ b/api/funkwhale_api/music/metadata.py
@@ -44,6 +44,8 @@ def get_id3_tag(f, k):
             return v
         except KeyError:
             break
+        except IndexError:
+            break
         except AttributeError:
             continue
 
-- 
GitLab