summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2017-10-29 10:46:26 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2017-10-29 10:46:26 +0000
commitb13da8a42a01d3d7e2a71bcae5d9aceecdcb6e82 (patch)
treea1d3371fe7587f86ab063846924699866e327e52
parent415979e2f76658c4e325b7854f0a66206f0bc5c8 (diff)
downloaddeluge-b13da8a42a01d3d7e2a71bcae5d9aceecdcb6e82.zip
deluge-b13da8a42a01d3d7e2a71bcae5d9aceecdcb6e82.tar.gz
deluge-b13da8a42a01d3d7e2a71bcae5d9aceecdcb6e82.tar.bz2
[#3010|GTKUI] Handle unknown OverflowError from twisted reactor
-rw-r--r--deluge/ui/gtkui/gtkui.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/deluge/ui/gtkui/gtkui.py b/deluge/ui/gtkui/gtkui.py
index cd6fcc8..eecd026 100644
--- a/deluge/ui/gtkui/gtkui.py
+++ b/deluge/ui/gtkui/gtkui.py
@@ -291,7 +291,12 @@ class GtkUI(object):
reactor.callWhenRunning(self._on_reactor_start)
# Start the gtk main loop
gtk.gdk.threads_enter()
- reactor.run()
+ try:
+ reactor.run()
+ except OverflowError:
+ # Ticket 3010 reports an error that cannot replicate so catch
+ # it and ignore it to prevent spamming logs.
+ pass
self.shutdown()
gtk.gdk.threads_leave()