Skip to content

Commit b8fa4ba

Browse files
ref: make this conditional less confusing
1 parent afc8700 commit b8fa4ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/testutils/hybrid_cloud.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def __call__(self, execute: Callable[..., Any], *params: Any) -> Any:
122122
raise CrossTransactionAssertionError(
123123
f"Found mixed open transactions between dbs {open_transactions}"
124124
)
125-
if open_transactions and not (self.alias in open_transactions):
125+
if open_transactions and self.alias not in open_transactions:
126126
raise CrossTransactionAssertionError(
127127
f"Transaction opened for db {open_transactions}, but command running against db {self.alias}"
128128
)

0 commit comments

Comments
 (0)