Skip to content

Commit d442081

Browse files
committed
Fix linter
1 parent 353ad88 commit d442081

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

admin/core/endpoints.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
from web3 import Web3, HTTPProvider, WebsocketProvider
77
from Crypto.Hash import keccak
88

9-
from admin import ENDPOINT, ABI_FILEPATH, PROXY_DOMAIN_NAME, SCHAIN_NAMES, FROM_FIRST_BLOCK, HTTP_ENDPOINT
9+
from admin import (ENDPOINT, ABI_FILEPATH, PROXY_DOMAIN_NAME,
10+
SCHAIN_NAMES, FROM_FIRST_BLOCK, HTTP_ENDPOINT)
1011
from admin.utils.helper import read_json
1112

1213
logger = logging.getLogger(__name__)
@@ -186,9 +187,11 @@ def get_schain_endpoint(schain_name, ws=False):
186187
endpoints = endpoints_for_schain(schains_internal_contract, nodes_contract, schain_id)
187188
for node in endpoints['nodes']:
188189
if ws:
189-
endpoint = node['ws_endpoint_domain'] if HTTP_ENDPOINT == 'true' else node['wss_endpoint_domain']
190+
endpoint = (node['ws_endpoint_domain'] if HTTP_ENDPOINT == 'true'
191+
else node['wss_endpoint_domain'])
190192
else:
191-
endpoint = node['http_endpoint_domain'] if HTTP_ENDPOINT == 'true' else node['https_endpoint_domain']
193+
endpoint = (node['http_endpoint_domain'] if HTTP_ENDPOINT == 'true'
194+
else node['https_endpoint_domain'])
192195
if check_endpoint(endpoint, ws):
193196
return endpoint
194197

0 commit comments

Comments
 (0)