Skip to content

Commit

Permalink
Merge pull request #39 from coagulant/patch-1
Browse files Browse the repository at this point in the history
Fix SitemapGenerator when GZIP_METHOD == 'system'
  • Loading branch information
xaralis committed Jun 5, 2016
2 parents c4305e9 + 75a09a4 commit 6b484f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static_sitemaps/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def write_page(self, site, page, filename):
if conf.GZIP_METHOD == 'system' and not os.path.exists(conf.SYSTEM_GZIP_PATH):
raise ImproperlyConfigured('STATICSITEMAPS_SYSTEM_GZIP_PATH does not exist')

if conf.GZIP_METHOD == 'system' and not isinstance(conf.SYSTEM_GZIP_PATH, FileSystemStorage):
if conf.GZIP_METHOD == 'system' and not isinstance(self.storage, FileSystemStorage):
raise ImproperlyConfigured('system gzip method can only be used with FileSystemStorage')

if conf.GZIP_METHOD == 'system':
Expand Down

0 comments on commit 6b484f1

Please sign in to comment.