Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe5f409 commit 0dedf45Copy full SHA for 0dedf45
1 file changed
Doc/library/xmlrpc.client.rst
@@ -343,7 +343,7 @@ The client code for the preceding server::
343
proxy = xmlrpc.client.ServerProxy("http://localhost:8000/")
344
try:
345
proxy.add(2, 5)
346
- except xmlrpc.client.Fault, err:
+ except xmlrpc.client.Fault as err:
347
print("A fault occurred")
348
print("Fault code: %d" % err.faultCode)
349
print("Fault string: %s" % err.faultString)
@@ -390,7 +390,7 @@ by providing an invalid URI::
390
391
392
proxy.some_method()
393
- except xmlrpc.client.ProtocolError, err:
+ except xmlrpc.client.ProtocolError as err:
394
print("A protocol error occurred")
395
print("URL: %s" % err.url)
396
print("HTTP/HTTPS headers: %s" % err.headers)
0 commit comments