From 6c01b6c9711d60b5987f4c131e4850175ab02e94 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Laurent?= <francois.laurent@posteo.net>
Date: Sun, 19 Mar 2023 01:41:48 +0100
Subject: [PATCH] fixes
 https://gitlab.pasteur.fr/nyx/larvatagger.jl/-/issues/106

---
 src/Datasets.jl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/Datasets.jl b/src/Datasets.jl
index 69ade64..89c158f 100644
--- a/src/Datasets.jl
+++ b/src/Datasets.jl
@@ -763,7 +763,9 @@ function getprimarylabels(attributes::Attributes, attrname=LABEL_ATTRIBUTE_NAMES
             labels = labels[subattr]
         end
         if labels isa Vector
-            labels = [labels...]
+            if !isempty(labels)
+                labels = [labels...]
+            end
         else
             labels = [labels]
         end
-- 
GitLab