From 62cb577ad2e236d294f1ba839519ad3412b75ef6 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 19 Jan 2010 22:52:17 +0100 Subject: [PATCH] prevent printing a useless traceback when gajim fails to start --- src/gajim.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gajim.py b/src/gajim.py index 2f2689ecb..285ad249d 100644 --- a/src/gajim.py +++ b/src/gajim.py @@ -362,7 +362,8 @@ def on_exit(): if os.path.exists(pid_filename): os.remove(pid_filename) # Shutdown GUI and save config - gajim.interface.roster.prepare_quit() + if hasattr(gajim.interface, 'roster'): + gajim.interface.roster.prepare_quit() import atexit atexit.register(on_exit)