Fixed excerpt response
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user