diff --git a/kontur_focus/focus.py b/kontur_focus/focus.py index 6b4557d..fbe599f 100644 --- a/kontur_focus/focus.py +++ b/kontur_focus/focus.py @@ -42,7 +42,7 @@ class Focus(Request): """ response = self.get('/excerpt') - if response.status_code != 404: + if type(response) is not str and response.status_code != 404: current_datetime = datetime.now().strftime('%d-%m-%Y_%H-%M') filename = f'Выписка_{self.inn}_{current_datetime}.pdf' diff --git a/setup.py b/setup.py index b6b1848..fd4c4cd 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name="kontur_focus", - version="2026.6.3", + version="2026.7.14", author="Ilya Sapunov", author_email="me@slrover.ru", description="Библиотека-обертка для взаимодействия с REST API Контур.Фокус и Фокус.Комплаенс",