Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions deepomatic/api/http_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __init__(self, app_id=None, api_key=None, verify_ssl=None,
self.http_retry = kwargs.pop('http_retry', HTTPRetry())

if len(kwargs) > 0:
raise TypeError("Too many parameters. HTTPRetry does not handle kwargs: {}".format(kwargs))
raise TypeError("Too many parameters. HTTPHelper does not handle kwargs: {}".format(kwargs))

self.requests_timeout = requests_timeout

Expand All @@ -76,8 +76,8 @@ def __init__(self, app_id=None, api_key=None, verify_ssl=None,
if api_key is None:
api_key = os.getenv('DEEPOMATIC_API_KEY')
if api_key is None:
raise DeepomaticException("Please specify 'api_key' either by passing those values to the client"
" or by defining the DEEPOMATIC_API_KEY environment variables.")
raise DeepomaticException("Please specify 'api_key' either by passing it to the client"
" or by defining the DEEPOMATIC_API_KEY environment variable.")

if not isinstance(version, string_types):
version = 'v%g' % version
Expand Down