Skip to content

Commit d4f704e

Browse files
committed
remove arg
Signed-off-by: Vanessa Sochat <[email protected]>
1 parent 0bf5a5f commit d4f704e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

singularity/analysis/reproduce/criteria.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ def include_file(member_path, file_filter):
2828
'''include_file will look at a path and determine
2929
if it matches a regular expression from a level
3030
'''
31+
print(member_path)
32+
print(file_filter)
3133

3234
# Does the filter skip it explicitly?
3335
if "skip_files" in file_filter:
@@ -41,8 +43,9 @@ def include_file(member_path, file_filter):
4143

4244
# Regular expression?
4345
if "regexp" in file_filter:
44-
if re.search(file_filter["regexp"], member_path):
45-
return True
46+
if file_filter['regexp'] != None and member_path != None:
47+
if re.search(file_filter["regexp"], member_path):
48+
return True
4649
return False
4750

4851

0 commit comments

Comments
 (0)