Merge pull request #40 from nijel/patch-1
Make github_username optional
This commit is contained in:
commit
7d22387f6a
1 changed files with 2 additions and 1 deletions
3
main.py
3
main.py
|
@ -71,7 +71,8 @@ async def main(loop, sites):
|
|||
wall = Wallabag(host=config["wallabag"]["host"], client_secret=config["wallabag"]["client_secret"],
|
||||
client_id=config["wallabag"]["client_id"], token=token, aio_sess=session)
|
||||
|
||||
sites = github_stars.get_starred_repos(config["github_username"], sites)
|
||||
if "github_username" in config:
|
||||
sites = github_stars.get_starred_repos(config["github_username"], sites)
|
||||
|
||||
await asyncio.gather(*[handle_feed(session, wall, sitetitle, site) for sitetitle, site in sites.items()])
|
||||
|
||||
|
|
Reference in a new issue