fallback on all non-critical config options
This commit is contained in:
parent
56bfaa7bc5
commit
ed81096071
1 changed files with 8 additions and 8 deletions
16
delojza.py
16
delojza.py
|
@ -553,13 +553,13 @@ if __name__ == '__main__':
|
||||||
delojza = DelojzaBot(config.get('delojza', 'tg_api_key'),
|
delojza = DelojzaBot(config.get('delojza', 'tg_api_key'),
|
||||||
config.get('delojza', 'OUT_DIR', fallback=os.path.join(_DIR_, "out")),
|
config.get('delojza', 'OUT_DIR', fallback=os.path.join(_DIR_, "out")),
|
||||||
tmp_dir=config.get('delojza', 'tmp_dir', fallback=tempfile.gettempdir()),
|
tmp_dir=config.get('delojza', 'tmp_dir', fallback=tempfile.gettempdir()),
|
||||||
protected_chats=config.get('delojza', 'protected_chats').split(";"),
|
protected_chats=config.get('delojza', 'protected_chats', fallback='').split(";"),
|
||||||
protected_tags=config.get('delojza', 'protected_tags').split(";"),
|
protected_tags=config.get('delojza', 'protected_tags', fallback='').split(";"),
|
||||||
acoustid_key=config.get('delojza', 'acoustid_api_key'),
|
acoustid_key=config.get('delojza', 'acoustid_api_key', fallback=None),
|
||||||
tumblr_name=config.get('tumblr', 'blog_name'),
|
tumblr_name=config.get('tumblr', 'blog_name', fallback=None),
|
||||||
tumblr_keys=(config.get('tumblr', 'consumer_key'),
|
tumblr_keys=(config.get('tumblr', 'consumer_key', fallback=None),
|
||||||
config.get('tumblr', 'consumer_secret'),
|
config.get('tumblr', 'consumer_secret', fallback=None),
|
||||||
config.get('tumblr', 'oauth_key'),
|
config.get('tumblr', 'oauth_key', fallback=None),
|
||||||
config.get('tumblr', 'oauth_secret')),
|
config.get('tumblr', 'oauth_secret', fallback=None)),
|
||||||
markov=markov)
|
markov=markov)
|
||||||
delojza.run_idle()
|
delojza.run_idle()
|
||||||
|
|
Loading…
Reference in a new issue