Closed Xabab closed 2 years ago
When trying to save addon (e.g. https://www.moddb.com/mods/stalker-anomaly/addons/anomaly-hd-models-addon),
class File(BaseMetaClass): def save(self, path = None): mirror = join(download.find("a", string=f"download {self.name}")["href"])
throws TypeError: 'NoneType' object is not subscriptable because it tries to search for an addon title instead for a filename
TypeError: 'NoneType' object is not subscriptable
Simply needs to be changed to:
mirror = join(download.find("a", string=f"download {self.filename}")["href"])
Fixed in 22c92e3
When trying to save addon (e.g. https://www.moddb.com/mods/stalker-anomaly/addons/anomaly-hd-models-addon),
throws
TypeError: 'NoneType' object is not subscriptable
because it tries to search for an addon title instead for a filenameSimply needs to be changed to:
mirror = join(download.find("a", string=f"download {self.filename}")["href"])