You might want to add a check here to see if the ```client_id``` attribute exists on the class or not. A simple ```hasattr``` check should suffice