def switchIrcut(n): try: client = SOAPProxy(url, namespace=namespace) report = client.switchIRFilter("all", n) msg = "Subject: [FAMNET] IR CUT FILTER report\n\nreport:\n%s" % report except Error, s: msg="Subject: [FAMNET] connection to streamer failed\n%s" % s