diff options
Diffstat (limited to 'database')
-rw-r--r-- | database/misc/riak.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/database/misc/riak.py b/database/misc/riak.py index 453e6c15..1f1cd11e 100644 --- a/database/misc/riak.py +++ b/database/misc/riak.py @@ -100,10 +100,15 @@ EXAMPLES = ''' import time import socket import sys + try: import json except ImportError: - import simplejson as json + try: + import simplejson as json + except ImportError: + # Let snippet from module_utils/basic.py return a proper error in this case + pass def ring_check(module, riak_admin_bin): |