Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

silly

  • Loading branch information...
commit 7d06daa1e343adb380211dcceea7c2112cf55855 1 parent d1e15de
@ralsina authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 nikola/plugins/task_redirect.py
View
5 nikola/plugins/task_redirect.py
@@ -66,7 +66,10 @@ def gen_tasks(self):
def create_redirect(src, dst):
- os.makedirs(os.path.dirname(src))
+ try:
+ os.makedirs(os.path.dirname(src))
+ except:
+ pass
with codecs.open(src, "wb+", "utf8") as fd:
fd.write(('<head>' +
'<meta HTTP-EQUIV="REFRESH" content="0; url=%s">' +
Please sign in to comment.
Something went wrong with that request. Please try again.