Skip to content

Commit b66d68a

Browse files
committed
fix error when checking type of Crawlbot urls parameter
1 parent a2359ed commit b66d68a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diffbot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def crawl(self, urls, name='crawl', api='analyze', **kwargs):
119119
Returns a diffbot.Job object to check and retrieve crawl status.
120120
"""
121121
# If multiple seed URLs are specified, join with whitespace.
122-
if isinstance(urls == list):
122+
if isinstance(urls, list):
123123
urls = ' '.join(urls)
124124
url = self.endpoint('crawl')
125125
process_url = self.endpoint(api)

0 commit comments

Comments
 (0)