Continue if exclude-dir doesn't exist, just log warning.
This commit is contained in:
parent
de9264c323
commit
2c17f9e911
|
@ -34,7 +34,7 @@ class NoseExclude(Plugin):
|
|||
if os.path.exists(abspath):
|
||||
return abspath
|
||||
else:
|
||||
raise ValueError("invalid path: %s" % pathname)
|
||||
log.warn('The following path was not found: %s' % pathname)
|
||||
|
||||
def _load_from_file(self, filename):
|
||||
infile = open(filename)
|
||||
|
@ -72,6 +72,7 @@ class NoseExclude(Plugin):
|
|||
for d in exclude_param.split('\n'):
|
||||
d = d.strip()
|
||||
abs_d = self._force_to_abspath(d)
|
||||
if abs_d:
|
||||
self.exclude_dirs[abs_d] = True
|
||||
|
||||
exclude_str = "excluding dirs: %s" % ",".join(self.exclude_dirs.keys())
|
||||
|
|
Loading…
Reference in New Issue