We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bf5a5f commit d4f704eCopy full SHA for d4f704e
singularity/analysis/reproduce/criteria.py
@@ -28,6 +28,8 @@ def include_file(member_path, file_filter):
28
'''include_file will look at a path and determine
29
if it matches a regular expression from a level
30
'''
31
+ print(member_path)
32
+ print(file_filter)
33
34
# Does the filter skip it explicitly?
35
if "skip_files" in file_filter:
@@ -41,8 +43,9 @@ def include_file(member_path, file_filter):
41
43
42
44
# Regular expression?
45
if "regexp" in file_filter:
- if re.search(file_filter["regexp"], member_path):
- return True
46
+ if file_filter['regexp'] != None and member_path != None:
47
+ if re.search(file_filter["regexp"], member_path):
48
+ return True
49
return False
50
51
0 commit comments