From ede27e0f6a5e21118da64855564fd1f60faefe92 Mon Sep 17 00:00:00 2001
From: George Marchment <georgemarchment@yahoo.fr>
Date: Mon, 11 Mar 2024 14:17:04 +0100
Subject: [PATCH] fix

---
 src/ro_crate.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/ro_crate.py b/src/ro_crate.py
index 22c1179..098a437 100644
--- a/src/ro_crate.py
+++ b/src/ro_crate.py
@@ -45,7 +45,10 @@ class RO_Crate:
         authors = self.workflow.get_authors()
         tab_authors = []
         for author in authors:
-            tab_authors.append({"@id":author["@id"], "email":author["email"]})
+            try:
+                tab_authors.append({"@id":author["@id"], "email":author["email"]})
+            except:
+                tab_authors.append({"@id":author["@id"]})
         root["author"] = tab_authors
         root["maintainer"] = tab_authors #Right now i'm assuming that all the authors are maintainers
         files = self.get_files()
-- 
GitLab