ignore 404 errors

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-01-17 20:15:19 +01:00
parent 50294c7e2f
commit 41b6042b3d
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 4 additions and 1 deletions

View File

@ -7,7 +7,10 @@ g = Github(os.environ['GH_TOKEN'])
org = g.get_organization('status-im')
for repo in org.get_repos():
try:
contents = repo.get_dir_contents('/')
except:
continue
# check if repo contains package.json
found = [f for f in contents if f.path == 'package.json']
if len(found) > 0: