From 17cac01673d479ecb4f4dbbc16a5c82bc19907e9 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 08bcfd4cc..dea68fdfe 100644 --- a/deluge/ui/gtkui/gtkui.py +++ b/deluge/ui/gtkui/gtkui.py @@ -373,7 +373,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()