Fixes bug with exception handling in the cov-dr context