aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rh/hooks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rh/hooks.py b/rh/hooks.py
index b5350cd..491da91 100644
--- a/rh/hooks.py
+++ b/rh/hooks.py
@@ -171,7 +171,7 @@ class ExclusionScope(object):
proj_dir: The relative path of the project.
"""
for exclusion_path in self._scope:
- if isinstance(exclusion_path, re.Pattern):
+ if hasattr(exclusion_path, 'match'):
if exclusion_path.match(proj_dir):
return True
elif fnmatch.fnmatch(proj_dir, exclusion_path):