Skip to content

Commit

Permalink
Formatted some lines longer that 80 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
tcalmant committed Jan 13, 2019
1 parent f6dfda0 commit ee94cc6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions jsonrpclib/SimpleJSONRPCServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,9 @@ def _dispatch(self, method, params, config=None):
except:
# Method exception
err_lines = traceback.format_exception(*sys.exc_info())
trace_string = '{0} | {1}'.format(err_lines[-2].splitlines()[0].strip(), err_lines[-1])
fault = Fault(-32603, 'Server error: {0}'.format(trace_string),
trace_string = "{0} | {1}".format(
err_lines[-2].splitlines()[0].strip(), err_lines[-1])
fault = Fault(-32603, "Server error: {0}".format(trace_string),
config=config)
_logger.exception("Server-side exception: %s", fault)
return fault
Expand Down Expand Up @@ -464,8 +465,9 @@ def do_POST(self):
# Exception: send 500 Server Error
self.send_response(500)
err_lines = traceback.format_exception(*sys.exc_info())
trace_string = '{0} | {1}'.format(err_lines[-2].splitlines()[0].strip(), err_lines[-1])
fault = jsonrpclib.Fault(-32603, 'Server error: {0}'
trace_string = "{0} | {1}".format(
err_lines[-2].splitlines()[0].strip(), err_lines[-1])
fault = jsonrpclib.Fault(-32603, "Server error: {0}"
.format(trace_string), config=config)
_logger.exception("Server-side error: %s", fault)
response = fault.response()
Expand Down

0 comments on commit ee94cc6

Please sign in to comment.