Merge pull request #5122 from bzed/broken_symlink_fix
Ignore broken symlinks while resolving strategies.
This commit is contained in:
commit
1d0a178eb5
@ -91,6 +91,9 @@ class IResolver:
|
|||||||
if not str(entry).endswith('.py'):
|
if not str(entry).endswith('.py'):
|
||||||
logger.debug('Ignoring %s', entry)
|
logger.debug('Ignoring %s', entry)
|
||||||
continue
|
continue
|
||||||
|
if entry.is_symlink() and not entry.is_file():
|
||||||
|
logger.debug('Ignoring broken symlink %s', entry)
|
||||||
|
continue
|
||||||
module_path = entry.resolve()
|
module_path = entry.resolve()
|
||||||
|
|
||||||
obj = next(cls._get_valid_object(module_path, object_name), None)
|
obj = next(cls._get_valid_object(module_path, object_name), None)
|
||||||
|
Loading…
Reference in New Issue
Block a user