1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-27 17:02:30 +01:00

Added check for loop before exiting loop

This commit is contained in:
Adam Blackburn
2009-02-19 22:59:40 -06:00
parent 4fc52511ba
commit 8ffe722053

View File

@@ -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: