This seems to happen when the callback is set to None or when self.callback() returns None, but the code does not check for this before calling it. Additionally, I noticed that even after the main ...