X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=update-xmpp-status.py;h=f6ee4c051a03dbe2aeb4f7238f4985a2f61e358c;hb=5d61d2377d2a060dc7e60d69fad964154fcf7b64;hp=c4bb6d4feac9367bcaf12d4262109291f5a390b5;hpb=93aaecf2da55944c8a9ef0f5556ee3e7c782d5bd;p=svn42.git diff --git a/update-xmpp-status.py b/update-xmpp-status.py index c4bb6d4..f6ee4c0 100644 --- a/update-xmpp-status.py +++ b/update-xmpp-status.py @@ -240,6 +240,10 @@ RE_REQUEST = re.compile(r'Request: (\w+) (?:Card )?(.+)') RE_ERROR = re.compile(r'Error: (.+)') while True: try: + if not os.path.exists(socketfile): + logging.debug("Socketfile '%s' not found, waiting 5 secs" % socketfile) + time.sleep(5) + continue sockhandle = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) sockhandle.connect(socketfile) conn = os.fdopen(sockhandle.fileno())