Don't return tuple value on error
This commit is contained in:
parent
39ce704969
commit
1b8b32b07c
|
@ -78,7 +78,7 @@ def call_api(config, operation, request_uri, params=None, data=None, files=None)
|
|||
data=data
|
||||
)
|
||||
except Exception as e:
|
||||
return False, 'Failed to connect to the API: {}'.format(e)
|
||||
return 'Failed to connect to the API: {}'.format(e)
|
||||
|
||||
# Display debug output
|
||||
if config['debug']:
|
||||
|
|
Loading…
Reference in New Issue