Skip to content

STL-1346 - JSON Response for Invalid address in state list#56

Open
hariharan-avs wants to merge 1 commit intolntdev:masterfrom
hariharan-avs:stl1346
Open

STL-1346 - JSON Response for Invalid address in state list#56
hariharan-avs wants to merge 1 commit intolntdev:masterfrom
hariharan-avs:stl1346

Conversation

@hariharan-avs
Copy link
Copy Markdown
Collaborator

@hariharan-avs hariharan-avs commented Sep 28, 2018

Mapped the Invalid address error:62 JSON Response to error
during query of invalid address to list state.

Modified route_handler.py to trap error and map to
error 62 via error_handlers.py

Removed unused argument 'request' in route_handlers.py - _wrap_response to resolve pylint error unused-argument. Added docstrings to modules, classes and methods to resolve pylint error.

Signed-off-by: Hariharan Subramanian hariharanx.subramanian@intel.com

error = errors.StateNotFound

class InvalidAddressListTrap(_ErrorTrap):
trigger = client_state_pb2.ClientStateListResponse.INVALID_ADDRESS
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you run lint ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran lint and resolved errors, changes merged

Mapped the Invalid address error:62 JSON Response to error
during query of invalid address to list state.

Modified route_handler.py to trap error and map to
error 62 via error_handlers.py

Removed unused parameter in route_handlers.py - _wrap_response
Added docstrings and resolved pylint errors

Signed-off-by: Hariharan Subramanian <hariharanx.subramanian@intel.com>
@hariharan-avs hariharan-avs changed the title JSON Response for Invalid address in state list STL-1346 - JSON Response for Invalid address in state list Oct 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants