1
0
mirror of https://github.com/etesync/server synced 2024-11-25 18:28:46 +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 Reformat files using black. 2020-12-29 15:37:11 +02:00
__init__.py
db_hack.py Cleanup django db connections before every request and every dependency. 2020-12-30 17:16:58 +02:00
dependencies.py Django db cleanup: explicitly add it to dependencies. 2020-12-31 10:03:16 +02:00
exceptions.py Subscriptions: implement live subscriptions for collection items 2021-01-11 22:15:12 +02:00
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 Support login and invitations using email rather than just username. 2021-01-27 09:35:36 +02:00