diff --git a/ctapi/ctapi.py b/ctapi/ctapi.py index ff2c323..8d3df0a 100644 --- a/ctapi/ctapi.py +++ b/ctapi/ctapi.py @@ -136,10 +136,10 @@ def _api_query(self, method, params={}): 'success': ret_json['success'], 'result': ret_json } - except: + except Exception as e: return { 'success': False, - 'message': "error connecting to API" + 'message': "error connecting to API: %s" % str(e) } ###########################################################################