Can someone tell me what's wrong with my code? It only works in the idle. Otherw...

@Axolotl1@gaygeek.social

Can someone tell me what's wrong with my code? It only works in the idle. Otherwise it closes upon saying yes, but says something about traceback but doesn't finish before closing.