From 12fd70a665611d056d04773e4b6a805a28580300 Mon Sep 17 00:00:00 2001 From: Stuart Longland Date: Wed, 18 Aug 2021 08:35:58 +1000 Subject: [PATCH] broker: Fix `flake8` errors --- amqtt/broker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amqtt/broker.py b/amqtt/broker.py index 7123d698..d671ac19 100644 --- a/amqtt/broker.py +++ b/amqtt/broker.py @@ -172,7 +172,7 @@ def __init__( self.port = int(uri.hostname) except ValueError as e: raise BrokerException( - "Invalid address given in bind value: %r" % (bind,) + "Invalid address given in bind value: %r" % (bind,) ) from e else: self.address = None @@ -203,7 +203,7 @@ def __init__( except FileNotFoundError as fnfe: raise BrokerException( "Can't read cert files '%s' or '%s' : %s" - % (listener["certfile"], listener["keyfile"], fnfe) + % (certfile, keyfile, fnfe) ) from fnfe else: self.ssl = None