Fixed SSE error after export (Safari)

This commit is contained in:
l_samenv
2024-08-29 08:58:28 +02:00
parent fcee45817f
commit d03fcca8cc
3 changed files with 5 additions and 2 deletions

View File

@@ -92,8 +92,10 @@ def get_update(path=None):
lastmsg = time.time()
else:
gevent.sleep(0.5)
except (GeneratorExit, tcp_lineserver.Disconnected):
except (GeneratorExit, tcp_lineserver.Disconnected) as e:
logging.info("except clause %r", repr(e))
logging.info('CLOSED %s', client.id)
print('CLOSE client')
instrument.remove(client)
pass
except Exception as e: