Fix https://pagure.io/fedocal/issue/216
As a side note, the test suite is kinda broken. I add to do a few fixes for running the test suite on 3.10 and newer deps, not sure what to do with that.
That may be similar to what @james encountered in #214.
It seems I faced different errors, see #218, #219, #220 and #221. Most of them look to be caused by updated version of dependencies, maybe triggered by the fact I ran test only on 3.10 (pure laziness on my part, I wanted to validate my patch and test)
As the current buildconfig still use python 3.6, I guess it might not have been seen earlier when building. And I think one test was broken, but I had a meeting.
rebased onto 3ca0319cda24c9bd2997a02b9c5c0f6eb37c84b5
I am going to merge all of your PR's. The code seems reasonable.
Pull-Request has been merged by humaton
Fix https://pagure.io/fedocal/issue/216