Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

AttributeError: 'function' object has no attribute 'func_code' #159

Open
toxygeneb opened this issue Apr 27, 2016 · 0 comments
Open

AttributeError: 'function' object has no attribute 'func_code' #159

toxygeneb opened this issue Apr 27, 2016 · 0 comments

Comments

@toxygeneb
Copy link

$ blogofile build -s mysite

ERROR:blogofile:Fatal build error occured, calling bf.config.build_exception()
Traceback (most recent call last):
  File "/usr/bin/blogofile", line 9, in <module>
    load_entry_point('Blogofile==0.8.3', 'console_scripts', 'blogofile')()
  File "/usr/lib/python3.5/site-packages/blogofile/main.py", line 58, in main
    args.func(args)
  File "/usr/lib/python3.5/site-packages/blogofile/main.py", line 388, in do_build
    writer.write_site()
  File "/usr/lib/python3.5/site-packages/blogofile/writer.py", line 49, in write_site
    self.__run_controllers()
  File "/usr/lib/python3.5/site-packages/blogofile/writer.py", line 162, in __run_controllers
    controller.run_all(namespaces)
  File "/usr/lib/python3.5/site-packages/blogofile/controller.py", line 229, in run_all
    c.mod.run()
  File "/usr/lib/python3.5/site-packages/blogofile_blog/site_src/_controllers/blog/__init__.py", line 68, in run
    blog.posts = post.parse_posts(blog.post.source_dir)
  File "/usr/lib/python3.5/site-packages/blogofile_blog/site_src/_controllers/blog/post.py", line 385, in parse_posts
    p = Post(src, filename=post_fn)
  File "/usr/lib/python3.5/site-packages/blogofile_blog/site_src/_controllers/blog/post.py", line 106, in __init__
    self.__parse()
  File "/usr/lib/python3.5/site-packages/blogofile_blog/site_src/_controllers/blog/post.py", line 125, in __parse
    self.__apply_filters(post_src)
  File "/usr/lib/python3.5/site-packages/blogofile_blog/site_src/_controllers/blog/post.py", line 143, in __apply_filters
    self.content = bf.filter.run_chain(self.filters, post_src, context=self)
  File "/usr/lib/python3.5/site-packages/blogofile/filter.py", line 42, in run_chain
    if 'context' not in inspect.getargs(f.run.func_code).args:
AttributeError: 'function' object has no attribute 'func_code'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant