File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -124,9 +124,9 @@ def mqtt_loop(
124
124
if self ._mqtt_client is not None :
125
125
self ._mqtt_client .loop (* args , ** kwargs )
126
126
except MQTT .MMQTTException as err :
127
- print ("MMQTTException: {0}" . format ( err ) )
127
+ print (f "MMQTTException: { err } " )
128
128
except OSError as err :
129
- print ("OSError: {0}" . format ( err ) )
129
+ print (f "OSError: { err } " )
130
130
else :
131
131
if self ._mqtt_client is not None :
132
132
self ._mqtt_client .loop (* args , ** kwargs )
@@ -144,7 +144,7 @@ def mqtt_publish(
144
144
if self ._mqtt_client is not None :
145
145
self ._mqtt_client .publish (* args , ** kwargs )
146
146
except OSError as err :
147
- print ("OSError: {0}" . format ( err ) )
147
+ print (f "OSError: { err } " )
148
148
else :
149
149
if self ._mqtt_client is not None :
150
150
self ._mqtt_client .publish (* args , ** kwargs )
You can’t perform that action at this time.
0 commit comments