Skip to content

Commit f942dd4

Browse files
committed
fix pylint
1 parent d8d4e39 commit f942dd4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

adafruit_minimqtt/adafruit_minimqtt.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,9 @@ def loop(self, timeout: float = 0) -> Optional[list[int]]:
10311031
"""
10321032
if timeout < self._socket_timeout:
10331033
raise MMQTTException(
1034-
f"loop timeout ({timeout}) must be bigger than socket timeout ({self._socket_timeout})"
1034+
# pylint: disable=consider-using-f-string
1035+
"loop timeout ({}) must be bigger ".format(timeout)
1036+
+ "than socket timeout ({}))".format(self._socket_timeout)
10351037
)
10361038

10371039
self._connected()

0 commit comments

Comments
 (0)