Archived
1
0
Fork 0

Merge pull request #40 from nijel/patch-1

Make github_username optional
This commit is contained in:
Lukas Winkler 2018-11-26 10:47:13 +01:00 committed by GitHub
commit 7d22387f6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()])