sunnycomes / IoVision

A simple markdown blog platform written in python. Pretty much like Octopress, however, this one is quite lightweight.
www.iovi.com
GNU General Public License v2.0
4 stars 9 forks source link

Error occurs when parsing post files in directory src/posts #31

Open sunnycomes opened 9 years ago

sunnycomes commented 9 years ago

Error occurs when parsing post files in directory src/posts. Error message: Traceback (most recent call last):

File "/usr/lib/python2.7/dist-packages/tornado/web.py", line 1141, in _when_complete callback() File "/usr/lib/python2.7/dist-packages/tornado/web.py", line 1162, in _execute_method self._when_complete(method(_self.path_args, *_self.path_kwargs), File "/home/sunnycomes/workspace/IoVision/src/handlers/index.py", line 19, in get posts = get_all_parsed_posts() File "/home/sunnycomes/workspace/IoVision/src/common/markdown_parser.py", line 88, in get_all_parsed_posts post = BasicParser.parse(options.posts_dir, post_name) File "/home/sunnycomes/workspace/IoVision/src/common/markdown_parser.py", line 59, in parse lines = BasicParser._read_post(post_path) File "/home/sunnycomes/workspace/IoVision/src/common/markdown_parser.py", line 19, in _read_post post_file = codecs.open(post_path, mode='r', encoding='utf8') File "/usr/lib/python2.7/codecs.py", line 878, in open file = builtin.open(filename, mode, buffering) IOError: [Errno 21] Is a directory: '/home/sunnycomes/workspace/IoVision/src/posts/.git'