File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -276,21 +276,21 @@ def print_properties(args, mqtt):
276
276
elif prop_type == "num" :
277
277
try :
278
278
value = prop_numbers .pop (0 )
279
- except AttributeError :
279
+ except ( AttributeError , IndexError ) :
280
280
value = errstr
281
281
elif prop_type == "string" :
282
282
try :
283
283
value = prop_strings .pop (0 )
284
- except AttributeError :
284
+ except ( AttributeError , IndexError ) :
285
285
value = errstr
286
286
elif prop_type == "stringpair" :
287
287
try :
288
288
key = prop_keys .pop (0 )
289
- except AttributeError :
289
+ except ( AttributeError , IndexError ) :
290
290
key = errstr
291
291
try :
292
292
value = prop_values .pop (0 )
293
- except AttributeError :
293
+ except ( AttributeError , IndexError ) :
294
294
value = errstr
295
295
if key is None :
296
296
print (f"{ name } { property_colour } { value } { ansi_reset } " )
You can’t perform that action at this time.
0 commit comments