aboutsummaryrefslogtreecommitdiffstats
path: root/clients/urwid/main.py
diff options
context:
space:
mode:
authorBlake DeMarcy <ofunknowndescent@gmail.com>2017-04-15 05:36:44 -0500
committerBlake DeMarcy <ofunknowndescent@gmail.com>2017-04-15 05:36:44 -0500
commit5f3421c5255113340e719341ff522e0ee894b2dd (patch)
tree8090d65bd903af6ace74cff54dbd90d643dff113 /clients/urwid/main.py
parentdd90247d8c14ff837db878e99c1896a04d90013e (diff)
downloadbbj-5f3421c5255113340e719341ff522e0ee894b2dd.tar.gz
fix AttributeError when quitting before logging in
Diffstat (limited to 'clients/urwid/main.py')
-rw-r--r--clients/urwid/main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/clients/urwid/main.py b/clients/urwid/main.py
index be559c5..73e6c00 100644
--- a/clients/urwid/main.py
+++ b/clients/urwid/main.py
@@ -1404,7 +1404,9 @@ def frilly_exit():
and shit, or just say bye, depending on the user's bbjrc
setting, `dramatic_exit`
"""
- app.loop.stop()
+ # sometimes this gets called before the loop is set up properly
+ try: app.loop.stop()
+ except: pass
if app.prefs["dramatic_exit"]:
width, height = app.loop.screen_size
for x in range(height - 1):
Un proyecto texto-plano.xyz