Skip to content

Commit 17296f0

Browse files
committed
Another workaround for black
1 parent 067fc76 commit 17296f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hypothesis-python/src/hypothesis/extra/_patching.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def __call_node_to_example_dec(self, node, via):
121121
cst.Module([]).code_for_node(via),
122122
mode=black.FileMode(line_length=self.line_length),
123123
)
124-
except ImportError:
124+
except (ImportError, AttributeError):
125125
return None # See https://github.com/psf/black/pull/4224
126126
via = cst.parse_expression(pretty.strip())
127127
return cst.Decorator(via)

0 commit comments

Comments
 (0)