Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ async def _on_error(self, context: TurnContext, err: ApplicationError) -> None:
)
return await self._error(context, err)

ogger.error(
logger.error(
f"An error occurred in the AgentApplication: {err}",
exc_info=True,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,16 @@ def __init__(
else auth_configuration.get("AUTOSIGNIN", False)
)

if not auth_handlers:
handlers_congif: Dict[str, Dict] = auth_configuration.get("HANDLERS")
if not handlers_congif:
logger.error("No auth handlers provided in configuration")
raise ValueError("The authorization does not have any auth handlers")
handlers_config: Dict[str, Dict] = auth_configuration.get("HANDLERS")
if not auth_handlers and handlers_config:
auth_handlers = {
handler_name: AuthHandler(
name=handler_name, **config.get("SETTINGS", {})
)
for handler_name, config in handlers_congif.items()
for handler_name, config in handlers_config.items()
}

self._auth_handlers = auth_handlers
self._auth_handlers = auth_handlers or {}
self._sign_in_handler: Optional[
Callable[[TurnContext, TurnState, Optional[str]], Awaitable[None]]
] = None
Expand Down