You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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'
```
3 years ago
..
routers Remove port from host_from_request check 3 years ago
sendfile Reformat files using black. 4 years ago
__init__.py first commit 4 years ago
db_hack.py Cleanup django db connections before every request and every dependency. 4 years ago
dependencies.py Django db cleanup: explicitly add it to dependencies. 4 years ago
exceptions.py Subscriptions: implement live subscriptions for collection items 4 years ago
main.py Fix Error `404 Not Found` for Static Files (#124) 3 years ago
msgpack.py Msgpack handling: fix compatibilty with newer fastapi. 3 years ago
redis.py fix(etebase_fastapi): fix crash on shutdown (#133) 3 years ago
stoken_handler.py Handle stoken being the empty string. 4 years ago
utils.py Support login and invitations using email rather than just username. 4 years ago