fix reindex logic when not using cookies

This commit is contained in:
simon 2023-01-13 15:19:11 +07:00
parent f665a1c7f5
commit 18a4484fa8
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -340,7 +340,8 @@ class Reindex(ReindexBase):
def cookie_is_valid(self):
"""return true if cookie is enabled and valid"""
if not self.config["downloads"]["cookie_import"]:
return False
# is not activated, continue reindex
return True
valid = CookieHandler(self.config).validate()
return valid