Skip to content

Commit

Permalink
Fixed #39. Move ' == None' to ' is None'
Browse files Browse the repository at this point in the history
  • Loading branch information
sananth12 committed Mar 7, 2015
1 parent cc75336 commit 94ae9d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions image_scraper/mains.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def console_main():

if len(images) == 0:
sys.exit("Sorry, no images found.")
if no_to_download == None:
if no_to_download is None:
no_to_download = len(images)

print("Found {0} images: ".format(len(images)))
Expand Down Expand Up @@ -82,7 +82,7 @@ def scrape_images(url, no_to_download=None,

if len(images) == 0:
return 0, 0 # count, failed
if no_to_download == None:
if no_to_download is None:
no_to_download = len(images)

process_download_path(download_path)
Expand Down

0 comments on commit 94ae9d1

Please sign in to comment.