Fixed the missisng file error

This commit is contained in:
Jules Lasne (jlasne - seluj78) 2020-10-14 09:54:37 +02:00
parent b33e5e8907
commit d83883c2db

View File

@ -117,7 +117,10 @@ def exec_potodo(
"is_interactive": is_interactive,
}
ignore_matches = parse_gitignore(path / ".potodoignore")
try:
ignore_matches = parse_gitignore(path / ".potodoignore")
except FileNotFoundError:
ignore_matches = parse_gitignore("/dev/null")
# Initialize the arguments
issue_reservations = get_issue_reservations(offline, hide_reserved, path)