mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-25 13:31:27 +00:00
fix: do not use bare 'except'
This commit is contained in:
parent
5c5e098bab
commit
d8fe54e0e9
|
@ -1,4 +1,4 @@
|
|||
from typing import AsyncGenerator, List
|
||||
from typing import AsyncGenerator
|
||||
from systemd import journal
|
||||
import asyncio
|
||||
|
||||
|
@ -25,7 +25,7 @@ async def log_stream() -> AsyncGenerator[LogEntry, None]:
|
|||
entry = await queue.get()
|
||||
try:
|
||||
yield LogEntry(entry)
|
||||
except:
|
||||
except Exception:
|
||||
asyncio.get_event_loop().remove_reader(j)
|
||||
return
|
||||
queue.task_done()
|
||||
|
|
Loading…
Reference in a new issue