Skip to content

Commit 511ae91

Browse files
committed
pass flake8
1 parent df0f319 commit 511ae91

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

cterasdk/clients/async_requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def filter_cookies(self, response_url):
123123
def get(self, response_url, key):
124124
"""
125125
Get Cookie Value
126-
126+
127127
:param str response_url: URL
128128
:param str key: Cookie Key
129129
:returns: Cookie Value

cterasdk/clients/settings.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
def get_configuration(transport_settings):
99
"""
1010
Get session configuration.
11-
11+
1212
:param pydantic.BaseModel transport: Transport settings
1313
:raises pydantic.ValidationError:
1414
:returns: Settings, represented as a key-value dictionary
@@ -23,16 +23,14 @@ def get_configuration(transport_settings):
2323

2424
parameters['audit'] = audit
2525
return parameters
26-
except AttributeError as error:
27-
raise
28-
except ValidationError as error:
26+
except (AttributeError, ValidationError) as error:
2927
raise ValueError('Configuration error.') from error
3028

3129

3230
def from_configuration(configuration):
3331
"""
3432
Convert dictionary configuration to session settings.
35-
33+
3634
:param dict configuration: Session configuration.
3735
:returns: A dictionary used for initialization of an ``aiohttp.ClientSession`` object
3836
:rtype: dict

cterasdk/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
settings = conf.Settings()
44

5-
__all__ = ['settings']
5+
__all__ = ['settings']

0 commit comments

Comments
 (0)