Skip to content

Commit

Permalink
handle case without sbol2 version
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Beal <jakebeal@gmail.com>
  • Loading branch information
fxbuson and jakebeal authored Sep 27, 2024
1 parent 9c7306a commit 3b41bbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbol_utilities/sbol3_sbol2_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def _convert_toplevel(self, obj2: sbol2.TopLevel, obj3: sbol3.TopLevel):
obj3.attachments = [a.identity for a in obj2.attachments]

def _sbol3_identity(self, obj2: sbol2.Identified):
if obj2.identity.endswith("/" + obj2.version):
if obj2.version and obj2.identity.endswith("/" + obj2.version):
return obj2.identity[:-len("/" + obj2.version)]
return obj2.identity

Expand Down

0 comments on commit 3b41bbf

Please sign in to comment.