🐛 add skip handle for process

This commit is contained in:
yanyongyu
2021-12-06 00:17:52 +08:00
parent c25ee1cb56
commit ca4d7397f8
4 changed files with 76 additions and 32 deletions

View File

@ -669,8 +669,11 @@ class Matcher(metaclass=MatcherMeta):
_stack=stack,
_dependency_cache=dependency_cache,
)
except SkippedException:
pass
except SkippedException as e:
logger.debug(
f"Handler {handler} param {e.param.name} value {e.value} "
f"mismatch type {e.param._type_display()}, skipped"
)
except RejectedException:
self.handlers.insert(0, handler) # type: ignore