diff --git a/daemon.py b/daemon.py index ca6a25654..5277a0408 100644 --- a/daemon.py +++ b/daemon.py @@ -736,7 +736,10 @@ class PubServer(BaseHTTPRequestHandler): while len(self.server.inboxQueue) >= self.server.maxQueueLength-4: queueFilename=self.server.inboxQueue[0] if os.path.isfile(queueFilename): - os.remove(queueFilename) + try: + os.remove(queueFilename) + except: + pass self.server.inboxQueue.pop(0) timeDiff=str(int((time.time()-cleardownStartTime)*1000)) print('Inbox cleardown took '+timeDiff+' mS')