Skip to content

Commit fd6210a

Browse files
committed
CancelledError has no host or port properties
1 parent 18d533c commit fd6210a

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
@@ -350,11 +350,9 @@ def chainResult(_ignored):
350350

351351
def _commitWithThread(self, transaction: CommitTransaction):
352352
if not self.running:
353-
raise defer.CancelledError(
354-
"CF Processor is not running (transaction: {host}:{port})",
355-
host=transaction.source_address.host,
356-
port=transaction.source_address.port,
357-
)
353+
host = transaction.source_address.host
354+
port = transaction.source_address.port
355+
raise defer.CancelledError(f"CF Processor is not running (transaction: {host}:{port})")
358356

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

0 commit comments

Comments
 (0)