Check hasattr(pin.net, 'desc') before accessing it.