diff --git a/itd/client.py b/itd/client.py index 45188bb..d4b56c5 100644 --- a/itd/client.py +++ b/itd/client.py @@ -790,6 +790,8 @@ class Client: NotFound: Пост не найден """ res = view_post(self.token, id) + if res.status_code == 204: + return if res.json().get('error', {}).get('code') == 'NOT_FOUND': raise NotFound('Post') res.raise_for_status()