@@ -397,8 +397,9 @@ def _dispatch(self, method, params, config=None):
397
397
except :
398
398
# Method exception
399
399
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 ),
402
403
config = config )
403
404
_logger .exception ("Server-side exception: %s" , fault )
404
405
return fault
@@ -464,8 +465,9 @@ def do_POST(self):
464
465
# Exception: send 500 Server Error
465
466
self .send_response (500 )
466
467
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}"
469
471
.format (trace_string ), config = config )
470
472
_logger .exception ("Server-side error: %s" , fault )
471
473
response = fault .response ()
0 commit comments