following-error
All checks were successful
Deploy on push / deploy (push) Successful in 6s

This commit is contained in:
Untone 2024-11-22 20:19:56 +03:00
parent 79f7c914d7
commit 779cb9a87c

View File

@ -176,6 +176,8 @@ async def unfollow(_, info, what, slug="", entity_id=0):
if what == "AUTHOR":
logger.debug("Отправка уведомления автору об отписке")
await notify_follower(follower=follower_dict, author_id=entity_id, action="unfollow")
else:
return {"error": "following was not found", f"{entity_type}s": follows}
except Exception as exc:
logger.exception("Произошла ошибка в функции 'unfollow'")