diff --git a/funkwhale_cli/api.py b/funkwhale_cli/api.py index b4ae91a521e0fd697c92add893e048f75c2ad8d7..c29b51ba3b29e2641014ddb1c44a710a362f5fb5 100644 --- a/funkwhale_cli/api.py +++ b/funkwhale_cli/api.py @@ -79,7 +79,7 @@ class API(object): headers = kwargs.setdefault("headers", {}) if self.token: scheme = "JWT" if len(self.token) > 50 else "Bearer" - headers["Authorization"] = " ".join([scheme, self.token]) + headers["Authorization"] = " ".join([scheme, str(self.token)]) handler = getattr(self._session, method) return handler(full_url, *args, **kwargs)