The _get_historical_versions function fails when parsing data from http://prodata.swmed.edu/ecod/complete/distribution. This is probably due to the presence of new records such as af2_human which do not have a proper version number.
File /temp/sdunin/scr/localpdb/localpdb/plugins/ECOD.py:70, in ECOD._get_historical_versions(self)
68 print(litag)
69 ver_url = self.plugin_config['ecod_domain'] + litag.find('a')['href']
---> 70 version = int(str(litag.text).split(' ')[0])
71 ecod_history[version] = ver_url # ECOD history dict
72 return ecod_history
ValueError: invalid literal for int() with base 10: ''
The
_get_historical_versions
function fails when parsing data from http://prodata.swmed.edu/ecod/complete/distribution. This is probably due to the presence of new records such asaf2_human
which do not have a proper version number.