mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Remove sys.exc_type, sys.exc_value, sys.exc_traceback
This commit is contained in:
parent
fc85c92a85
commit
ac3625fcb9
16 changed files with 36 additions and 58 deletions
|
@ -261,7 +261,7 @@ class SimpleXMLRPCDispatcher:
|
|||
except:
|
||||
# report exception back to server
|
||||
response = xmlrpclib.dumps(
|
||||
xmlrpclib.Fault(1, "%s:%s" % (sys.exc_type, sys.exc_value)),
|
||||
xmlrpclib.Fault(1, "%s:%s" % sys.exc_info()[:2]),
|
||||
encoding=self.encoding, allow_none=self.allow_none,
|
||||
)
|
||||
|
||||
|
@ -362,7 +362,7 @@ class SimpleXMLRPCDispatcher:
|
|||
except:
|
||||
results.append(
|
||||
{'faultCode' : 1,
|
||||
'faultString' : "%s:%s" % (sys.exc_type, sys.exc_value)}
|
||||
'faultString' : "%s:%s" % sys.exc_info()[:2]}
|
||||
)
|
||||
return results
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue