Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Last commit wasn't backwards compatible, this is. Thanks @d0ugal (e81…

  • Loading branch information...
commit 86d9bee7d6b617b39868fe0fbbf6d15633822494 1 parent e819e8d
@EnigmaCurry authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 blogofile/writer.py
View
4 blogofile/writer.py
@@ -115,7 +115,7 @@ def __write_files(self):
#Copy this non-template file
f_path = util.path_join(root, t_fn)
logger.debug("Copying file: " + f_path)
- if self.config.site.overwrite_warning and os.path.exists(path):
+ if getattr(self.config.site, 'overwrite_warning', True) and os.path.exists(path):
logger.warn("Location is used more than once: {0}".format(f_path))
out_path = util.path_join(self.output_dir, f_path)
if self.bf.config.site.use_hard_links:
@@ -170,7 +170,7 @@ def materialize_template(self, template_name, location, attrs={}, lookup=None):
path = util.path_join(self.output_dir, location)
#Create the path if it doesn't exist:
util.mkdir(os.path.split(path)[0])
- if self.config.site.overwrite_warning and os.path.exists(path):
+ if getattr(self.config.site, 'overwrite_warning', True) and os.path.exists(path):
logger.warn("Location is used more than once: {0}".format(location))
f = open(path, "w")
f.write(rendered)
Please sign in to comment.
Something went wrong with that request. Please try again.