diff --git a/curses/wicd-curses.py b/curses/wicd-curses.py index 4ecfe4e..488107a 100644 --- a/curses/wicd-curses.py +++ b/curses/wicd-curses.py @@ -99,7 +99,8 @@ class wrap_exceptions: raise except : # Quit the loop - loop.quit() + if 'loop' in locals(): + loop.quit() # Zap the screen ui.stop() # Print out standard notification: