Python3

Ok so until now i thought ASP was the bad, I was wrong.

As part on my PiZero & Z-Wave Cam project I’ve been forced to use

Python3
proxy = xmlrpc.client.ServerProxy('http://pi-zero-b:8000')

Creates an XML Client to

PI-ZERO-B

port

8000

Now how the hell do I get it to ‘handle’ errors!

One such error is

PI-ZERO-B

being inaccessible. This could be due to reboot or network failure.

i’ve tried

try:
proxy = xmlrpc.client.ServerProxy('http://pi-zero-b:8000')
proxy.sequence()
except xmlrpc.client.ProtocolError as err:
pass

Published by

Daniel McMorrow

40 Year old disabled geek,

%d bloggers like this: