Comments (7)
from shreddit.
What?
from shreddit.
It looks like config
is just set to None
right before read
is called. Previously config
was being set to simpleconfigparser()
, but that's no longer being imported.
I ran it without the -c shreddit.yml
args and it worked for me (python ./shreddit.py
instead of python ./shreddit.py -c shreddit.yml
)...
from shreddit.
from shreddit.
Looks like a simple fix. I edited the code and changed around line 50:
config = None
if args.config:
config.read(args.config)
else:
with open('shreddit.yml', 'r') as fh:
config = yaml.safe_load(fh)
if config is None:
raise Exception("No config options passed!")
to:
config = None
if args.config:
with open(args.config, 'r') as fh:
config = yaml.safe_load(fh)
#config.read(args.config)
else:
with open('shreddit.yml', 'r') as fh:
config = yaml.safe_load(fh)
if config is None:
raise Exception("No config options passed!")
Note that adding the "with open(args.config, 'r' as fh:" line will open the config file you pass.
from shreddit.
Hey there, this should be fixed by #54
from shreddit.
Merged (can't test at the moment but looks like it should work).
Pull again @vizakenjaro and see if that works for you.
Thanks as well @Tjololo12.
from shreddit.
Related Issues (20)
- Can't run, AttributeError HOT 6
- Updated to ubuntu 20 - get error HOT 3
- Issue with requirements file HOT 1
- Error when trying to clear a vote that cannot be cleared. HOT 1
- Read-Only File system? HOT 1
- Delete private messages? HOT 1
- [NOTE] My fork of this repo with updates still works fine HOT 3
- Can a Whitelist ID Example be added to the ReadMe or in the Shreddit.yml file? HOT 2
- Problem with Arrow library HOT 2
- Can't quite figure it out HOT 7
- This script removed my most recent comment even though I set a minimum age of 3 years HOT 1
- Suddenly failing HOT 11
- ValueError: Unknown attribute: 'hours'.? HOT 9
- zsh: command not found when trying to setup cron
- TypeError
- whitelist seems to be ignored HOT 1
- mistakenly created
- Use my repo. This one has been broken for years. HOT 10
- I rewrote it in Rust HOT 1
- Could you do this for Twitter? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shreddit.