try/except masking error