Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions grabbit/extensions/writable.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ def write_contents_to_file(path, contents=None, link_to=None,
raise ValueError(msg.format(path))
elif conflicts == 'skip':
msg = 'A file at path {} already exists, skipping writing file.'
logging.warn(msg.format(path))
logging.warning(msg.format(path))
return
elif conflicts == 'overwrite':
if isdir(path):
logging.warn('New path is a directory, not going to '
logging.warning('New path is a directory, not going to '
'overwrite it, skipping instead.')
return
os.remove(path)
Expand Down