mirror of
https://github.com/etesync/server
synced 2024-11-22 08:48:07 +00:00
b620d0a39c
self.redis isn't None, it's actually unset, so accessing it results in an exception: ``` ERROR: Traceback (most recent call last): File "./.venv/lib/python3.9/site-packages/starlette/routing.py", line 624, in lifespan await receive() File "./.venv/lib/python3.9/site-packages/starlette/routing.py", line 521, in __aexit__ await self._router.shutdown() File "./.venv/lib/python3.9/site-packages/starlette/routing.py", line 608, in shutdown await handler() File "./etebase_fastapi/main.py", line 72, in on_shutdown await redisw.close() File "./etebase_fastapi/redis.py", line 18, in close if self.redis is not None: AttributeError: 'RedisWrapper' object has no attribute 'redis' ``` |
||
---|---|---|
.. | ||
routers | ||
sendfile | ||
__init__.py | ||
db_hack.py | ||
dependencies.py | ||
exceptions.py | ||
main.py | ||
msgpack.py | ||
redis.py | ||
stoken_handler.py | ||
utils.py |