Skip to content

Commit

Permalink
#84 - don't test lcoal file system
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Grangier committed Apr 22, 2014
1 parent e225721 commit 7a75339
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions goose/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ def crawl(self, crawl_candiate):
return article

def initialize(self):
# we don't need to go further if image extractor or
# local_storage is not set
if not self.config.local_storage_path or \
not self.config.enable_image_fetching:
return
# test if config.local_storage_path
# is a directory
if not os.path.isdir(self.config.local_storage_path):
Expand Down

0 comments on commit 7a75339

Please sign in to comment.