From d3c3d64cd4ac8cef6c6f6ee8d21b2ff6384d4465 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Thu, 1 Dec 2011 23:43:27 +0000 Subject: [PATCH] Fix #1938 : AttributeError when attempting to shutdown daemon from client --- deluge/ui/gtkui/mainwindow.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/mainwindow.py b/deluge/ui/gtkui/mainwindow.py index ea5191fc8..75b8d64bb 100644 --- a/deluge/ui/gtkui/mainwindow.py +++ b/deluge/ui/gtkui/mainwindow.py @@ -158,7 +158,10 @@ class MainWindow(component.Component): :type shutdown: boolean """ if shutdown: - client.daemon.shutdown() + try: + client.daemon.shutdown() + except AttributeError, e: + log.error("Encountered error attempting to shutdown daemon: %s", e) reactor.stop() def load_window_state(self):