Put check for CONDA_BUILD in try/except