I can’t explain, but I can help you troubleshooting.
Try to put a raise Exception
inside that call and run the app, so you see the traceback. Then put an if called: raise Exception
and run again.
Now you have two tracebacks and see where the two calls originate.
(It would be great to simply print the traceback, rather than adding an intentional exception, but we can’t (yet)).