From 3d84f49bae1cda055d0b3d110906bd41ad334ff5 Mon Sep 17 00:00:00 2001
From: Robert Bossy <Robert.Bossy@inra.fr>
Date: Wed, 31 Mar 2021 11:33:28 +0200
Subject: [PATCH] add dispatch no-number

---
 dsmz-match.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dsmz-match.py b/dsmz-match.py
index c0bdee1..685aea9 100755
--- a/dsmz-match.py
+++ b/dsmz-match.py
@@ -92,6 +92,8 @@ class BacDiveEntry:
         return None
 
     def _dispatch(self, ncbi_taxa):
+        if len(self.strain_number) == 0:
+            return 'no-number', None
         for n in itertools.chain(self.strain_number, self.complete_name):
             taxid = self._match(ncbi_taxa, n, 'no rank')
             if taxid is not None:
-- 
GitLab