Fixes #4553
pretty please pagure-ci rebuild
rebased onto a60b72415eff8a333ee3e7223146255acbaf5064
Since this is not covered in our tests, I'm going to merge it as is :)
Pull-Request has been merged by pingou
Fixes #4553