Commit 93d0ccd1 by James Martin

Added catch-all exception for stats collection.

parent e7f5186d
...@@ -193,6 +193,8 @@ def main(): ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment