We should catch the dnf/libdnf5 Exception and print a nice error to the user.
Relates: https://bugzilla.redhat.com/show_bug.cgi?id=2216141
https://git.sr.ht/~gotmax23/fedrq/commit/f0605d9c71345729ecb01d67feef3d24c750715c