The issue was introduced in https://github.com/rpm-software-management/dnf5/pull/1849 and it seems to be an intentional change in the DNF 5 Python interface. I'll talk with the DNF team tomorrow to see whether we can make this backwards-compatible, or if we need to bump the DNF 5 version to 5.3.0.0 and change the API usage in Lorax. (or some possible other solution).
Here is a backtrace:
#0 0x00007ffff7880b44 in __pthread_kill_implementation () at /lib64/libc.so.6
#1 0x00007ffff78272de in raise () at /lib64/libc.so.6
#2 0x00007ffff780f3d4 in abort () at /lib64/libc.so.6
#3 0x00007fffe8809069 in __gnu_cxx::__verbose_terminate_handler() [clone .cold] () at /lib64/libstdc++.so.6
#4 0x00007fffe881b36c in __cxxabiv1::__terminate(void (*)()) () at /lib64/libstdc++.so.6
#5 0x00007fffe8808c11 in std::terminate() () at /lib64/libstdc++.so.6
#6 0x00007fffe881b5f8 in __cxa_throw () at /lib64/libstdc++.so.6
#7 0x00007fffe6dfce45 in Swig::DirectorTypeMismatchException::raise (error=0x7ffff7edaac0, msg=msg@entry=0x7fffe6e86896 "in output value of type 'int'") at /usr/src/debug/dnf5-5.2.8.0-1.fc42.x86_64/redhat-linux-build/bindings/python3/libdnf5/CMakeFiles/python3_repo.dir/repoPYTHON_wrap.cxx:3563
#8 0x00007fffe6dfd24e in SwigDirector_DownloadCallbacks::add_new_download (this=<optimized out>, user_data=<optimized out>, description=<optimized out>, total_to_download=<optimized out>)
at /usr/src/debug/dnf5-5.2.8.0-1.fc42.x86_64/redhat-linux-build/bindings/python3/libdnf5/CMakeFiles/python3_repo.dir/repoPYTHON_wrap.cxx:5747
#9 0x00007fffe8d28f47 in libdnf5::repo::PackageDownloader::download (this=0x7fffffffd880) at /usr/src/debug/dnf5-5.2.8.0-1.fc42.x86_64/libdnf5/repo/package_downloader.cpp:159
#10 0x00007fffe8cab1d1 in libdnf5::base::Transaction::download (this=0x555555d6e380) at /usr/src/debug/dnf5-5.2.8.0-1.fc42.x86_64/libdnf5/base/transaction.cpp:420
#11 0x00007fffe704f84f in _wrap_Transaction_download (self=<optimized out>, args=<optimized out>) at /usr/src/debug/dnf5-5.2.8.0-1.fc42.x86_64/redhat-linux-build/bindings/python3/libdnf5/CMakeFiles/python3_base.dir/basePYTHON_wrap.cxx:14096
#12 0x00007ffff7b6fe3f in cfunction_vectorcall_O () at /lib64/libpython3.13.so.1.0
#13 0x00007ffff7b3bfd7 in PyObject_Vectorcall () at /lib64/libpython3.13.so.1.0
#14 0x00007ffff7b51e2f in _PyEval_EvalFrameDefault () at /lib64/libpython3.13.so.1.0
#15 0x00007ffff7ba84b2 in method_vectorcall () at /lib64/libpython3.13.so.1.0
#16 0x00007ffff7b53320 in _PyEval_EvalFrameDefault () at /lib64/libpython3.13.so.1.0
#17 0x00007ffff7c1de7b in PyEval_EvalCode () at /lib64/libpython3.13.so.1.0
#18 0x00007ffff7c3f9a0 in run_eval_code_obj () at /lib64/libpython3.13.so.1.0
#19 0x00007ffff7c39dc3 in run_mod () at /lib64/libpython3.13.so.1.0
#20 0x00007ffff7c5a466 in pyrun_file () at /lib64/libpython3.13.so.1.0
#21 0x00007ffff7c5956f in _PyRun_SimpleFileObject () at /lib64/libpython3.13.so.1.0
#22 0x00007ffff7c5c4f1 in _PyRun_AnyFileObject () at /lib64/libpython3.13.so.1.0
#23 0x00007ffff7c52ae8 in Py_RunMain () at /lib64/libpython3.13.so.1.0
#24 0x00007ffff7c0d17c in Py_BytesMain () at /lib64/libpython3.13.so.1.0
#25 0x00007ffff78110c8 in __libc_start_call_main () at /lib64/libc.so.6
#26 0x00007ffff781118b in __libc_start_main_impl () at /lib64/libc.so.6
#27 0x0000555555555095 in _start ()
This update has been unpushed.