Added catch-all exception for stats collection.
This commit is contained in:
parent
ccb5bd3ecf
commit
c6b787cc42
1 changed files with 2 additions and 0 deletions
2
riak
2
riak
|
@ -193,6 +193,8 @@ def main():
|
||||||
stats_raw = status_to_json()
|
stats_raw = status_to_json()
|
||||||
except urllib2.URLError, e:
|
except urllib2.URLError, e:
|
||||||
stats_raw = status_to_json()
|
stats_raw = status_to_json()
|
||||||
|
except Exception, e:
|
||||||
|
stats_raw = status_to_json()
|
||||||
|
|
||||||
stats = json.loads(stats_raw)
|
stats = json.loads(stats_raw)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue