We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34c300e commit ee54096Copy full SHA for ee54096
src/main/allure_helpers.py
@@ -1,3 +1,4 @@
1
+# pylint: disable=missing-function-docstring,missing-class-docstring
2
import json
3
import logging
4
from functools import wraps
@@ -71,15 +72,14 @@ def wrapper(*args, **kwargs):
71
72
attachment_type=allure.attachment_type.JSON,
73
extension='json')
74
- except ValueError as error:
75
+ except ValueError:
76
logging.error('RESPONSE IN NOT JSON FORMAT')
77
allure.attach(
78
body=response.text.encode('utf8'),
79
name=f'NOT JSON Response {response.status_code} {response.request.method} '
80
f'{response.request.url}',
81
attachment_type=allure.attachment_type.TEXT,
82
extension='txt')
- raise error
83
return response
84
85
return wrapper
0 commit comments