diff --git a/asyncpg/transaction.py b/asyncpg/transaction.py index 4c799925..61e23f18 100644 --- a/asyncpg/transaction.py +++ b/asyncpg/transaction.py @@ -234,7 +234,8 @@ def __repr__(self): attrs = [] attrs.append('state:{}'.format(self._state.name.lower())) - attrs.append(self._isolation) + if self._isolation is not None: + attrs.append(self._isolation) if self._readonly: attrs.append('readonly') if self._deferrable: