diff --git a/hbd b/hbd index 349abf1..6efc291 100755 --- a/hbd +++ b/hbd @@ -165,13 +165,15 @@ def pushover(msg): if not SEND_PUSHOVER: return conn = httplib.HTTPSConnection("api.pushover.net:443") - conn.request("POST", "/1/messages.json", - urllib.urlencode({ - "token": "ac7NLX2rPjXFareeDgLpXNoDf4iFmf", - "user": "uDhH33UjQQDYtNzJb1ThRiWb9ingGK", - "message": msg, - }), { "Content-type": "application/x-www-form-urlencoded" }) - conn.getresponse() + try: + conn.request("POST", "/1/messages.json", + urllib.urlencode({ + "token": "ac7NLX2rPjXFareeDgLpXNoDf4iFmf", + "user": "uDhH33UjQQDYtNzJb1ThRiWb9ingGK", + "message": msg, }), { "Content-type": "application/x-www-form-urlencoded" }) + conn.getresponse() + except: + pass # nsupdate: set the DNS A record for a fqdn