[nanny/win32: 46/75] Fix error on removecustomfilter client
- From: Roberto Majadas <telemaco src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nanny/win32: 46/75] Fix error on removecustomfilter client
- Date: Tue, 2 Nov 2010 18:54:49 +0000 (UTC)
commit 955a27a9937a5c15f6117c9785083d3ac11ec43b
Author: Roberto Majadas <roberto majadas openshine com>
Date: Tue Sep 28 02:55:42 2010 +0200
Fix error on removecustomfilter client
client/common/src/PyroClient.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/client/common/src/PyroClient.py b/client/common/src/PyroClient.py
index b267567..da000ec 100644
--- a/client/common/src/PyroClient.py
+++ b/client/common/src/PyroClient.py
@@ -102,7 +102,12 @@ class PyroClient(gobject.GObject):
return self.nanny_wcf.UpdateCustomFilter (filter_id, name, description, url)
def remove_custom_filter (self, filter_id, reply_handler, error_handler):
- return self.nanny_wcf.RemoveCustomFilter (filter_id, reply_handler=reply_handler, error_handler=error_handler, timeout=2000000)
+ try:
+ ret = self.nanny_wcf.RemoveCustomFilter (filter_id)
+ reply_handler(True)
+ return ret
+ except:
+ error_handler(None)
def add_pkg_filter (self, name):
return self.nanny_wcf.AddPkgFilter(name)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]