File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -974,9 +974,7 @@ def _sock_exact_recv(self, bufsize):
974
974
mv = mv [recv_len :]
975
975
if time .monotonic () - stamp > read_timeout :
976
976
raise MMQTTException (
977
- "Unable to receive {} bytes within {} seconds." .format (
978
- to_read , read_timeout
979
- )
977
+ f"Unable to receive { to_read } bytes within { read_timeout } seconds."
980
978
)
981
979
else : # ESP32SPI Impl.
982
980
# This will timeout with socket timeout (not keepalive timeout)
@@ -997,9 +995,7 @@ def _sock_exact_recv(self, bufsize):
997
995
rc += recv
998
996
if time .monotonic () - stamp > read_timeout :
999
997
raise MMQTTException (
1000
- "Unable to receive {} bytes within {} seconds." .format (
1001
- to_read , read_timeout
1002
- )
998
+ f"Unable to receive { to_read } bytes within { read_timeout } seconds."
1003
999
)
1004
1000
return rc
1005
1001
You can’t perform that action at this time.
0 commit comments