Skip to content

KeyError: 'isBinary'  #1

Description

@Klazomenai

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' 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions