fix: Correct behaviour for further information = None

This commit is contained in:
moanos [he/him] 2024-11-06 23:32:01 +01:00
parent f1d9f7ad22
commit 0b93b5eccb

View File

@ -76,7 +76,7 @@ def deactivate_unchecked_adoption_notices():
def deactivate_404_adoption_notices():
for adoption_notice in get_active_adoption_notices():
if adoption_notice.further_information != "":
if adoption_notice.further_information and adoption_notice.further_information != "":
if is_404(adoption_notice.further_information):
adoption_notice.set_closed()
logging_msg = f"Automatically set Adoption Notice {adoption_notice.id} closed as link to more information returened 404"