From 183c47f8102c26db8fe8eb6e71d06176ac86e854 Mon Sep 17 00:00:00 2001 From: John Garland Date: Sun, 16 Sep 2012 18:36:58 +1000 Subject: [PATCH] Fix deluge-gtk not working with twisted 12 (fixes #2148) --- deluge/ui/gtkui/gtkui.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/gtkui.py b/deluge/ui/gtkui/gtkui.py index 5726eea50..53072e2ac 100644 --- a/deluge/ui/gtkui/gtkui.py +++ b/deluge/ui/gtkui/gtkui.py @@ -405,7 +405,11 @@ Please see the details below for more information."), details=traceback.format_e if self.config["show_connection_manager_on_start"]: # XXX: We need to call a simulate() here, but this could be a bug in twisted - reactor.simulate() + try: + reactor._simulate() + except AttributeError: + # twisted < 12 + reactor.simulate() self.connectionmanager.show()