1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Added catch-all exception for stats collection.

This commit is contained in:
James Martin 2013-04-12 20:28:39 -04:00
parent e7f5186dec
commit 93d0ccd1e1

View file

@ -193,6 +193,8 @@ def main():
stats_raw = status_to_json()
except urllib2.URLError, e:
stats_raw = status_to_json()
except Exception, e:
stats_raw = status_to_json()
stats = json.loads(stats_raw)