diff --git a/mapadroid/mitm_receiver/endpoints/AuthMethodEndpoint.py b/mapadroid/mitm_receiver/endpoints/AuthMethodEndpoint.py index 68a8c32af..68090000b 100644 --- a/mapadroid/mitm_receiver/endpoints/AuthMethodEndpoint.py +++ b/mapadroid/mitm_receiver/endpoints/AuthMethodEndpoint.py @@ -36,5 +36,7 @@ async def get(self): return self._json_response({}) currently_assigned: Optional[SettingsPogoauth] = await SettingsPogoauthHelper.get_assigned_to_device( session, device_entry.device_id) - response = {"method": currently_assigned.login_type} + + response = {"method": str(currently_assigned.login_type) if currently_assigned else ""} + logger.success("Instructing {} to use {}", origin, response["method"]) return self._json_response(response)