merged main branch

This commit is contained in:
Goffi 2016-06-24 22:41:28 +02:00
commit a28bb7be8f

View file

@ -147,7 +147,7 @@ class BlogCommon(object):
ext = os.path.splitext(path)[1][1:] # we get extension without the '.'
if ext:
for k,v in SYNTAX_EXT.iteritems():
if ext == v:
if k and ext == v:
return k
# if not found, we use current syntax