SynBioDex / pySBOL2

A pure Python implementation of the SBOL standard.
Apache License 2.0
20 stars 6 forks source link

PartShop.submit fails when document.displayId has no value #394

Open tramyn opened 3 years ago

tramyn commented 3 years ago

I am getting the following error when submitting contents to SynBioHub when calling PartShop.submit(). Below is a snippet of this error:

if len(doc.displayId) > 0:
TypeError: object of type 'NoneType' has no len()

Parameters pass to PartShop.submit() looks something like this:

PartShop.submit(document, collection, flags)

document represents an SBOL document object collection is set to uri from SynBioHub flags is set to 2