From c5646759aae4dbe311427948f526887e41ef01bd Mon Sep 17 00:00:00 2001 From: Ruben Thoms Date: Fri, 22 Sep 2023 16:48:47 +0200 Subject: [PATCH] Added missing `decode` --- backend/src/services/graph_access/graph_access.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/services/graph_access/graph_access.py b/backend/src/services/graph_access/graph_access.py index 85e0c72aa..fe3b92c6e 100644 --- a/backend/src/services/graph_access/graph_access.py +++ b/backend/src/services/graph_access/graph_access.py @@ -25,7 +25,7 @@ async def get_user_profile_photo(self) -> str | None: response = await self._request("https://graph.microsoft.com/v1.0/me/photo/$value") if response.status_code == 200: - return base64.b64encode(response.content) + return base64.b64encode(response.content).decode("utf-8") else: return None