Skip to content

Error when shutting teapot down #22

Description

@vrbanecd

When teapot is shutting down it gives the following error message:

ERROR:    Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 738, in lifespan
    async with self.lifespan_context(app) as maybe_state:
  File "/usr/local/lib/python3.10/contextlib.py", line 206, in __aexit__
    await anext(self.gen)
  File "/usr/share/teapot/teapot.py", line 62, in lifespan
    pathlib.Path.unlink(SESSION_STORE_PATH)
  File "/usr/local/lib/python3.10/pathlib.py", line 1206, in unlink
    self._accessor.unlink(self)
AttributeError: 'str' object has no attribute '_accessor'

ERROR:    Application shutdown failed. Exiting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions