BIND 10 trac2676, updated. 4d5d7d6e423cb6e46a9f4acfde4e8ebf434951d2 [2676] Translate to the correct exception
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Feb 19 10:00:23 UTC 2013
The branch, trac2676 has been updated
via 4d5d7d6e423cb6e46a9f4acfde4e8ebf434951d2 (commit)
from cee365b41dfe5e24b62d02d21a2f52749bb19688 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4d5d7d6e423cb6e46a9f4acfde4e8ebf434951d2
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Tue Feb 19 10:59:46 2013 +0100
[2676] Translate to the correct exception
If the remote is not there, it's not "Data error"
-----------------------------------------------------------------------
Summary of changes:
src/bin/stats/stats_httpd.py.in | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/stats/stats_httpd.py.in b/src/bin/stats/stats_httpd.py.in
index f42b1d1..fd9ac93 100755
--- a/src/bin/stats/stats_httpd.py.in
+++ b/src/bin/stats/stats_httpd.py.in
@@ -460,12 +460,13 @@ class StatsHttpd:
param['name'] = name
try:
return self.mccs.rpc_call('show', 'Stats', params=param)
- except isc.config.RPCError as e:
- raise StatsHttpdDataError("Stats module: %s" % str(e))
except (isc.cc.session.SessionTimeout,
- isc.cc.session.SessionError) as err:
+ isc.cc.session.SessionError,
+ isc.config.RPCRecipientMissing) as err:
raise StatsHttpdError("%s: %s" %
(err.__class__.__name__, err))
+ except isc.config.RPCError as e:
+ raise StatsHttpdDataError("Stats module: %s" % str(e))
def get_stats_spec(self, owner=None, name=None):
"""Requests statistics data to the Stats daemon and returns
More information about the bind10-changes
mailing list