Skip to content

Commit 055e879

Browse files
authored
format_code.py: fix NameError when --d is specified (#1356)
1 parent e3d2a73 commit 055e879

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/format_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def list_files_from_directory(path, recurse):
165165
filenames = []
166166
for root, dirs, files in os.walk(path):
167167
for filename in files:
168-
if(FILE_PATHS_TO_IGNORE.match(line)):
168+
if(FILE_PATHS_TO_IGNORE.match(filename)):
169169
continue
170170
if filename.endswith(FILE_TYPE_EXTENSIONS):
171171
full_path = os.path.join(root, filename)

0 commit comments

Comments
 (0)