Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'isBinary' #1

Open
Klazomenai opened this issue Jul 28, 2021 · 0 comments · May be fixed by #2
Open

KeyError: 'isBinary' #1

Klazomenai opened this issue Jul 28, 2021 · 0 comments · May be fixed by #2
Assignees

Comments

@Klazomenai
Copy link

Description

If a directory is present when trying to run the search, it will fail with the below error.

I.e. if the flag --dir ".github/" is used for a repository which also contains .github/workflows/, it will fail for the workflows/ directory.

Traceback (most recent call last):                                                                                                                                                                                 
  File "/env/main.py", line 127, in <module>                                                                                                                                                                       
    main()                                                                                                                                                                                                         
  File "/env/main.py", line 119, in main                                                                                                                                                                           
    files = get_files(args.org, header_auth, repo, branch, args.dir)                                                                                                                                               
  File "/env/main.py", line 66, in get_files                                                                                                                                                                       
    if not bool(file["object"]["isBinary"]):                                                                                                                                                                       
KeyError: 'isBinary' 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant