Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed error on importing entries without a proper "link".

  • Loading branch information...
commit bfbd9941a9402dbd52846b4935934bf7620e5e72 1 parent 35f8048
@geekman geekman authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  acrylamid/tasks/imprt.py
View
3  acrylamid/tasks/imprt.py
@@ -377,7 +377,8 @@ def create(defaults, item):
if options.keep:
m = urlsplit(item['link'])
- item['permalink'] = m.path if m.path != '/' else None
+ if m.path != '/':
+ item['permalink'] = m.path
item['content'], item['filter'] = convert(item.get('content', ''),
options.fmt, options.pandoc)
Please sign in to comment.
Something went wrong with that request. Please try again.