Permalink
Browse files

silly

  • Loading branch information...
1 parent d1e15de commit 7d06daa1e343adb380211dcceea7c2112cf55855 @ralsina committed Dec 30, 2012
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">' +

0 comments on commit 7d06daa

Please sign in to comment.