Metron-Project / Simyan

A Python wrapper for the Comicvine API.
https://pypi.org/project/simyan
GNU General Public License v3.0
11 stars 2 forks source link

VolumeResult - Incorrect Type Returned #106

Closed jakem742 closed 2 years ago

jakem742 commented 2 years ago

I am grabbing matches for quite a few series (~3000) and have noticed that occasionally the returned result on a volume search has issues with some of the attributes showing up as a VolumeResult object instead of a string. I'm not sure if this is enough info, but the last line of output from my script is the error I'm getting.

There was an error processing Volume search for Doctor Who Magazine (1979):
sequence item 0: expected str instance, VolumeResult found

The only attributes I'm using from the VolumeResult are name, startyear, publisher.name, id, issue_count.

I'm not sure if this is a bug or a user error, but I can't see what I'm missing that would make 1 out of every 50-100 series searches return this.

jakem742 commented 2 years ago

Below are a few other search terms where I have experienced this error:

I'll see if I can collect some more info next time I'm running it.

jakem742 commented 2 years ago

Ugh, just realised it was an internal thing. My apologies.