Fix exception handling in yieldSrpmHeaders