Skip to content

Commit 095d653

Browse files
committed
fix
1 parent 7667222 commit 095d653

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/apps/src/microsoft/teams/apps/token_manager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ async def _get_token(
9191
else:
9292
self._logger.debug(f"TokenRes: {token_res}")
9393
error = token_res.get("error", ValueError("Error retrieving token"))
94+
if not isinstance(error, BaseException):
95+
error = ValueError(error)
9496
error_description = token_res.get("error_description", "Error retrieving token from MSAL")
9597
self._logger.error(error_description)
9698
raise error

0 commit comments

Comments
 (0)