Skip to content

Commit

Permalink
fix: properly check for isfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ccwienk committed Dec 18, 2024
1 parent 86fff1d commit e1998be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github/codeowners.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def enumerate_codeowners_from_local_repo(

for path in paths:
codeowners_file = os.path.join(repo_dir, path)
if codeowners_file.is_file():
if os.path.exists(codeowners_file):
with open(codeowners_file) as f:
yield from (
parse_codeowner_entry(entry)
Expand Down

0 comments on commit e1998be

Please sign in to comment.