Could be a bug, but I know a few things were changed between the two versions. It’s hard to tell without a minimal example.
One other thing you could do that would be helpful is to provide a backtrace of the RuntimError. Something like:
gdb python
catch throw
run <script name>
backtrace