Skip to content

Commit f7c791c

Browse files
committed
[document-conversion] Fixes conditional statement
Fixes a conditional statement to resolve Travis CI failure.
1 parent e780126 commit f7c791c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

watson_developer_cloud/document_conversion_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def convert_document(self, document, config, media_type=None):
3939
accept_json=accept_json)
4040

4141
def index_document(self, config, document=None, metadata=None, media_type=None):
42-
if document == None and metadata == None:
42+
if document is None and metadata is None:
4343
raise AssertionError('Missing required parameters: document or metadata. At least one of those is required.')
4444
params = {'version': self.version}
4545
files = [('config', ('config.json', json.dumps(config), 'application/json'))]

0 commit comments

Comments
 (0)