Skip to content

Commit ee94cc6

Browse files
committed
Formatted some lines longer that 80 chars
1 parent f6dfda0 commit ee94cc6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

jsonrpclib/SimpleJSONRPCServer.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,9 @@ def _dispatch(self, method, params, config=None):
397397
except:
398398
# Method exception
399399
err_lines = traceback.format_exception(*sys.exc_info())
400-
trace_string = '{0} | {1}'.format(err_lines[-2].splitlines()[0].strip(), err_lines[-1])
401-
fault = Fault(-32603, 'Server error: {0}'.format(trace_string),
400+
trace_string = "{0} | {1}".format(
401+
err_lines[-2].splitlines()[0].strip(), err_lines[-1])
402+
fault = Fault(-32603, "Server error: {0}".format(trace_string),
402403
config=config)
403404
_logger.exception("Server-side exception: %s", fault)
404405
return fault
@@ -464,8 +465,9 @@ def do_POST(self):
464465
# Exception: send 500 Server Error
465466
self.send_response(500)
466467
err_lines = traceback.format_exception(*sys.exc_info())
467-
trace_string = '{0} | {1}'.format(err_lines[-2].splitlines()[0].strip(), err_lines[-1])
468-
fault = jsonrpclib.Fault(-32603, 'Server error: {0}'
468+
trace_string = "{0} | {1}".format(
469+
err_lines[-2].splitlines()[0].strip(), err_lines[-1])
470+
fault = jsonrpclib.Fault(-32603, "Server error: {0}"
469471
.format(trace_string), config=config)
470472
_logger.exception("Server-side error: %s", fault)
471473
response = fault.response()

0 commit comments

Comments
 (0)