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)