Skip to content

Commit 3d2b985

Browse files
committed
CancelledError has no host or port properties
1 parent 66fe27e commit 3d2b985

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

server/recceiver/cfstore.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,9 @@ def chainResult(_ignored):
269269

270270
def _commitWithThread(self, transaction: CommitTransaction):
271271
if not self.running:
272-
raise defer.CancelledError(
273-
"CF Processor is not running (transaction: {host}:{port})",
274-
host=transaction.source_address.host,
275-
port=transaction.source_address.port,
276-
)
272+
host = transaction.source_address.host
273+
port = transaction.source_address.port
274+
raise defer.CancelledError(f"CF Processor is not running (transaction: {host}:{port})")
277275

278276
_log.info("CF_COMMIT: {transaction}".format(transaction=transaction))
279277
_log.debug("CF_COMMIT: transaction: {s}".format(s=repr(transaction)))

0 commit comments

Comments
 (0)