diff --git a/rocketc/rocketc.py b/rocketc/rocketc.py index 50a9aecd..ed4de9d5 100644 --- a/rocketc/rocketc.py +++ b/rocketc/rocketc.py @@ -759,12 +759,9 @@ def logout_user(self, request=None, suffix=None): login_token = user_data.get("authToken") user_id = user_data.get("userId") response = api.logout_user(user_id, login_token) - try: - response = response.json() - if response.get("status") == "success": - cache.delete(key) - return Response(status=202) - except AttributeError: - return Response(status=503) + + if response.get("status") == "success": + cache.delete(key) + return Response(status=202) return Response(status=404)