feat(auth): add DB-backed login, token management, and idempotent auth migration
This commit is contained in:
@@ -40,7 +40,7 @@ def _with_service(ctx: typer.Context, callback):
|
||||
result = execute_command(app_context.console, callback=lambda: callback(service, app_context))
|
||||
return result
|
||||
finally:
|
||||
if hasattr(repository, "close"):
|
||||
if callable(getattr(type(repository), "close", None)):
|
||||
repository.close()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user