1
0
mirror of https://github.com/etesync/server synced 2024-11-25 10:18:12 +00:00
etesync-server/etebase_fastapi
Xiretza b620d0a39c
fix(etebase_fastapi): fix crash on shutdown (#133)
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'
```
2022-05-07 20:37:53 +03:00
..
routers Remove port from host_from_request check 2021-09-20 15:13:25 +03:00
sendfile
__init__.py
db_hack.py
dependencies.py
exceptions.py
main.py Fix Error 404 Not Found for Static Files (#124) 2022-03-20 14:21:09 +02:00
msgpack.py Msgpack handling: fix compatibilty with newer fastapi. 2022-03-25 15:17:37 +03:00
redis.py fix(etebase_fastapi): fix crash on shutdown (#133) 2022-05-07 20:37:53 +03:00
stoken_handler.py Handle stoken being the empty string. 2021-02-01 18:40:14 +02:00
utils.py