Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'Config' object has no attribute 'cache_timeout' #13

Open
maplepy opened this issue Feb 11, 2022 · 0 comments
Open

AttributeError: 'Config' object has no attribute 'cache_timeout' #13

maplepy opened this issue Feb 11, 2022 · 0 comments

Comments

@maplepy
Copy link

maplepy commented Feb 11, 2022

When I try to run even the most basic config, the one provided in the README.md, see the following code, I get the error below:

import praw
import puni

r = praw.Reddit('foo')
sub = r.subreddit('bar')
un = puni.UserNotes(r, sub)

Where foo is defined in praw.ini correctly and works fine without puni

Traceback (most recent call last):
  File "/home/maplepy/Projects/reddit-bot/tempCodeRunnerFile.python", line 6, in <module>
    un = puni.UserNotes(r, sub)
  File "/home/maplepy/.local/share/virtualenvs/reddit-bot-4VZjxEoA/lib/python3.10/site-packages/puni/puni.py", line 163, in __init__
    self.cache_timeout = r.config.cache_timeout
AttributeError: 'Config' object has no attribute 'cache_timeout'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant