Print debug information if config saving failed.

This commit is contained in:
Florian Bruhin 2014-06-20 22:56:29 +02:00
parent 517bb038bc
commit 03b69c5527

View File

@ -621,8 +621,9 @@ class Application(QApplication):
what, handler.__qualname__)) what, handler.__qualname__))
try: try:
handler() handler()
except AttributeError: except AttributeError as e:
log.destroy.warning("Could not save {}.".format(what)) log.destroy.warning("Could not save {}.".format(what))
log.destroy.debug(e)
# Shut down tabs # Shut down tabs
try: try:
self.mainwindow.tabs.shutdown_complete.connect(partial( self.mainwindow.tabs.shutdown_complete.connect(partial(