Skip to content

Commit ee54096

Browse files
Disable pylint rules in allure_helpers.py; Remove exception raising.
1 parent 34c300e commit ee54096

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/allure_helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pylint: disable=missing-function-docstring,missing-class-docstring
12
import json
23
import logging
34
from functools import wraps
@@ -71,15 +72,14 @@ def wrapper(*args, **kwargs):
7172
attachment_type=allure.attachment_type.JSON,
7273
extension='json')
7374

74-
except ValueError as error:
75+
except ValueError:
7576
logging.error('RESPONSE IN NOT JSON FORMAT')
7677
allure.attach(
7778
body=response.text.encode('utf8'),
7879
name=f'NOT JSON Response {response.status_code} {response.request.method} '
7980
f'{response.request.url}',
8081
attachment_type=allure.attachment_type.TEXT,
8182
extension='txt')
82-
raise error
8383
return response
8484

8585
return wrapper

0 commit comments

Comments
 (0)