@@ -419,6 +419,8 @@ def parse_tracks(self, tracks_file):
419
419
" parameter {} but there is no more parameter"
420
420
" with space in name. Will be substituted by {}."
421
421
"" .format (section_name , old_name , name ))
422
+ else :
423
+ old_name = name
422
424
# end
423
425
SYNONYMOUS_PROPERTIES = track_class .SYNONYMOUS_PROPERTIES
424
426
# If the name is part of the synonymous we substitute by
@@ -430,14 +432,20 @@ def parse_tracks(self, tracks_file):
430
432
track_options [name ] = value
431
433
elif name in track_class .BOOLEAN_PROPERTIES :
432
434
try :
435
+ # I need to use old_name here else I get a KeyError:
433
436
track_options [name ] = parser .getboolean (section_name ,
434
- name )
437
+ old_name )
438
+ # In the next 1.0 should be:
439
+ # track_options[name] = parser.getboolean(section_name,
440
+ # name)
435
441
except ValueError :
436
442
raise InputError ("In section {}, {} was set to {}"
437
443
" whereas we should have a boolean "
438
444
"value. Please, use true or false."
439
- "" .format (section_name , name ,
445
+ "" .format (section_name , old_name ,
440
446
value ))
447
+ # In the next 1.0 should be:
448
+ # "".format(section_name, name,
441
449
if value .lower () not in ['true' , 'false' ]:
442
450
log .warning ("Deprecation Warning: "
443
451
"In section {}, {} was set to {}"
0 commit comments