saketkc / pysradb

Package for fetching metadata and downloading data from SRA/ENA/GEO
https://saketkc.github.io/pysradb
BSD 3-Clause "New" or "Revised" License
307 stars 50 forks source link

[BUG] 'NoneType' object has no attribute 'entrytype' error #158

Closed shuchaa closed 2 years ago

shuchaa commented 2 years ago

Describe the bug Since updating from version 1.0.1 to 1.3.1 sometimes, while using the function gse-to-srp, for some GSEs, the following error occurs: image

while in version 1.0.1 it works fine for the same GSEs.

To Reproduce Steps to reproduce the behavior: pysradb gse-to-srp GSE164522

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

saketkc commented 2 years ago

This GSE doesn't have an SRP attached: https://www.ncbi.nlm.nih.gov/bioproject/PRJNA691050

 $ pysradb gse-to-srp GSE164522
No results found for ['GSE164522']
 $ pysradb --version
pysradb 1.0.1

Though, I agree with 1.3.1, the error is not graceful. Does this make sense?

saketkc commented 2 years ago

Also, the page says "Raw data not provided for this record" at the bottom. Closing this.