prevent printing a useless traceback when gajim fails to start

This commit is contained in:
Yann Leboulanger 2010-01-19 22:52:17 +01:00
parent 47bfbb3b95
commit 62cb577ad2
1 changed files with 2 additions and 1 deletions

View File

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