BUG: catch attribute error for raw ndarrays