From 780354fb12f51c69b34c8d74eeb0d9bcbc5b641b Mon Sep 17 00:00:00 2001 From: Antonio Gonzalez Date: Wed, 8 Nov 2023 13:04:33 -0700 Subject: [PATCH] fix bug in has_human --- qiita_db/artifact.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qiita_db/artifact.py b/qiita_db/artifact.py index 79cf64de0..2604ee6ef 100644 --- a/qiita_db/artifact.py +++ b/qiita_db/artifact.py @@ -1566,7 +1566,8 @@ def has_human(self): with qdb.sql_connection.TRN: qdb.sql_connection.TRN.add(sql) for v in qdb.sql_connection.TRN.execute_fetchflatten(): - if v.startswith('human-'): + # str is needed as v could be None + if str(v).startswith('human-'): has_human = True break