Don't catch generic exceptions

This is no longer necessary since none of the pkg.get_repo functions
throw exceptions for non-error conditions.