move Arrow3D into conditional matplotlib try statement