added ValueError as another caught exception