def load_user(session, url): response = session.get(url) try: return response.json() except ValueError: return {}