Skip to content

Commit ea4a6bd

Browse files
fix lint
1 parent 6de1447 commit ea4a6bd

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/collectors.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,6 @@ def client_version(self):
555555

556556
if 'info' in result:
557557
info = result['info']
558-
559558
version = validate_dict_and_return_key_value(
560559
info, 'build_version', self._logger_metadata, stringify=True)
561560

src/interfaces.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ def json_rpc_post(self, payload, non_rpc_response=None):
7575
validations fail, the method returns type None. """
7676
response = self._return_and_validate_request(method='POST', payload=payload)
7777
if response is not None:
78-
# Use REST validation instead of RPC validation to handle non standard RPC responses such as XRPL
78+
# Use REST validation instead of RPC validation if non_rpc_response is True
79+
# to handle non-RPC responses such as XRPL
7980
if non_rpc_response:
8081
result = return_and_validate_rest_api_json_result(
8182
response, self._logger_metadata)

src/test_collectors.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,8 @@ def test_client_version_get_build_version(self):
896896
self.assertEqual({"client_version": "2.4.0"}, result)
897897

898898
def test_client_version_get_libxrpl_version(self):
899-
"""Tests that the client version is returned with the libxrpl_version key if build_version is not present"""
899+
"""Tests that the client version is returned with the libxrpl_version key
900+
if build_version is not present"""
900901
self.mocked_connection.return_value.cached_json_rpc_post.return_value = {
901902
"result": {"info": {"libxrpl_version": "2.4.0"}}}
902903
result = self.xrpl_collector.client_version()

0 commit comments

Comments
 (0)