prevent printing a useless traceback when gajim fails to start
This commit is contained in:
parent
47bfbb3b95
commit
62cb577ad2
|
@ -362,7 +362,8 @@ def on_exit():
|
||||||
if os.path.exists(pid_filename):
|
if os.path.exists(pid_filename):
|
||||||
os.remove(pid_filename)
|
os.remove(pid_filename)
|
||||||
# Shutdown GUI and save config
|
# Shutdown GUI and save config
|
||||||
gajim.interface.roster.prepare_quit()
|
if hasattr(gajim.interface, 'roster'):
|
||||||
|
gajim.interface.roster.prepare_quit()
|
||||||
|
|
||||||
import atexit
|
import atexit
|
||||||
atexit.register(on_exit)
|
atexit.register(on_exit)
|
||||||
|
|
Loading…
Reference in New Issue